On 7/11/06, Padraig O'Briain <[EMAIL PROTECTED]> wrote:
I have submitted patches to various projects to change references to string
variables which could be NULL from
s to
s ? s : "NULL"
shouldn't we take care of this in printf and friends, and make it
configurable if we want to support this extension or stay with the old
way of handling this? And put a dtace probe there so we could track if
and when its happnening so the admin can make the judgement if the
code needs to be fixed?
James Dickens
uadmin.blogspot.com
I have looked in the code and found
http://cvs.opensolaris.org/source/xref/on/usr/src/common/util/string.c#172
which I think is what Linux is doing.
Most of the code where I have encountered the4 problem are logging or debug
statements. You will have difficulty persuading people used to that behavior
that it is a bug and not a feature.
Padraig
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code