This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: how to handle userspace string copy failures
Frank Ch. Eigler wrote:
>>>> At worst, I think we should print warnings. I also propose that any
>>>> user_string() request that fails should return "<unknown>".
>>> I am uncomfortable with hard-coding such a decorated english term. A
>>> simple blank string would be fine.
>> blank strings do nothing to indicate that information was missing.
>
> Nor does "<unknown>", except to an english-speaking user looking over
> a literally transcribed output after the fact. That's the point.
The string "<unknown>" has much more information content,
even for a non-english speaker, than "". At least you
can google it.
=============================
Tim Bird
Architecture Group Chair, CE Linux Forum
Senior Staff Engineer, Sony Electronics
=============================