diff options
author | Hans Rosenfeld <hans.rosenfeld@nexenta.com> | 2014-10-22 17:32:17 +0200 |
---|---|---|
committer | Gordon Ross <gwr@nexenta.com> | 2014-11-04 11:32:42 -0500 |
commit | 2f5a01126fee81fbe9fff04d4412c2834e3944b8 (patch) | |
tree | f93ed11745b4912e04f2550dbcfa7ddc979e6ef8 /usr/src | |
parent | 90a455ac4ea45868c160c95be7cb1d19844acbea (diff) | |
download | illumos-joyent-2f5a01126fee81fbe9fff04d4412c2834e3944b8.tar.gz |
5272 dev_err(9F) ignores special first character of message (explicit NULL check)
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/uts/common/os/printf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/common/os/printf.c b/usr/src/uts/common/os/printf.c index 3ef207d77b..5d1e69253f 100644 --- a/usr/src/uts/common/os/printf.c +++ b/usr/src/uts/common/os/printf.c @@ -112,7 +112,7 @@ retry: "%s: [ID %u FACILITY_AND_PRIORITY] ", mod_containing_pc(site), msgid); msgp += snprintf(msgp, bufend - msgp, prefix); - if (dip) + if (dip != NULL) msgp += snprintf(msgp, bufend - msgp, "%s%d: ", ddi_driver_name(dip), ddi_get_instance(dip)); msgp += vsnprintf(msgp, bufend - msgp, fmt, adx); |