]> granicus.if.org Git - zfs/commitdiff
Fix whitespace in zed_log_err
authorChris Dunlap <cdunlap@llnl.gov>
Tue, 28 Jul 2015 22:52:18 +0000 (15:52 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 30 Jul 2015 18:52:35 +0000 (11:52 -0700)
This commit fixes the two adjacent spaces that appear in zed_log_err()
messages when ZEVENT_EID is undefined.

Signed-off-by: Chris Dunlap <cdunlap@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
cmd/zed/zed.d/zed-functions.sh

index cc4f69667ee7791f4bfa0ae13b2a8b5f7fde4e44..83c36ba6ff8c034a39b10b5466680cfc29db5d20 100644 (file)
@@ -75,7 +75,7 @@ zed_log_msg()
 zed_log_err()
 {
     logger -p "${ZED_SYSLOG_PRIORITY}" -t "${ZED_SYSLOG_TAG}" -- "error:" \
-        "$(basename -- "$0"):" "${ZEVENT_EID:+"eid=${ZEVENT_EID}:"}" "$@"
+        "$(basename -- "$0"):""${ZEVENT_EID:+" eid=${ZEVENT_EID}:"}" "$@"
 }