On 06/28/10 01:57 PM, Gireesh Nagabhushana wrote:
You may add "sgsmsg:" in the error message similar to others.
@@ -88,6 +88,7 @@
"at line\n",
* Errmsg_nmem = "sgsmsg: memory allocation failed: %s\n",
* Errmsg_opne = "sgsmsg: file %s: open failed: %s\n",
+ * Errmsg_tmp = "cannot create temporary file",
* Errmsg_wrte = "sgsmsg: file %s: write failed: %s\n",
* Errmsg_read = "sgsmsg: file %s: read failed %s\n",
* Errmsg_stnw = "sgsmsg: st_new(): failed: %s\n",
That's actually on purpose since err() will print the program name by
itself. But this brings up good point since the second call will print
the program name twice. Hence, I have modified the calls using the
Errmsg strings to use warn()/err() family. As a result the code is
easier on the eyes now. Note that some of the error strings do not print
the errno string so they are used with the x-prefixed variants of
warn(), warnx(). Also, the usage string is still printed with fprintf()
cause it does not need the program name prefix. All other error messages
should be printed via err()/warn() family.
webrev is refreshed.
v.
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code