ZFS_LOG adds a newline by itself.

Pointed out by:	pjd
This commit is contained in:
Andrew Thompson 2007-10-14 16:14:32 +00:00
parent 1016626062
commit 1fe1be1535
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172645
2 changed files with 2 additions and 2 deletions

View File

@ -290,7 +290,7 @@ zfs_ereport_post(const char *subclass, spa_t *spa, vdev_t *vd, zio_t *zio,
mutex_exit(&spa->spa_errlist_lock);
sbuf_finish(&sb);
ZFS_LOG(1, "%s\n", sbuf_data(&sb));
ZFS_LOG(1, "%s", sbuf_data(&sb));
devctl_notify("ZFS", spa->spa_name, subclass, sbuf_data(&sb));
if (sbuf_overflowed(&sb))
printf("ZFS WARNING: sbuf overflowed\n");

View File

@ -290,7 +290,7 @@ zfs_ereport_post(const char *subclass, spa_t *spa, vdev_t *vd, zio_t *zio,
mutex_exit(&spa->spa_errlist_lock);
sbuf_finish(&sb);
ZFS_LOG(1, "%s\n", sbuf_data(&sb));
ZFS_LOG(1, "%s", sbuf_data(&sb));
devctl_notify("ZFS", spa->spa_name, subclass, sbuf_data(&sb));
if (sbuf_overflowed(&sb))
printf("ZFS WARNING: sbuf overflowed\n");