diff options
author | delphij <delphij@FreeBSD.org> | 2013-03-05 22:58:53 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2013-03-05 22:58:53 +0000 |
commit | cf801867c9adf3ab9de7448db68218e7e3a97c2e (patch) | |
tree | 1de50987c81f0a949b608af851d5968119248806 /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_history.c | |
parent | a41bc8b667fc299a6a06b9f1fee73f738d54d8df (diff) | |
download | FreeBSD-src-cf801867c9adf3ab9de7448db68218e7e3a97c2e.zip FreeBSD-src-cf801867c9adf3ab9de7448db68218e7e3a97c2e.tar.gz |
Use adx2 instead of adx in the second vsprintf, this fixes a
panic.
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_history.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_history.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_history.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_history.c index 6ac8a93..15d3050 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_history.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_history.c @@ -450,7 +450,7 @@ log_internal(nvlist_t *nvl, const char *operation, spa_t *spa, va_copy(adx2, adx); msg = kmem_alloc(vsnprintf(NULL, 0, fmt, adx) + 1, KM_SLEEP); - (void) vsprintf(msg, fmt, adx); + (void) vsprintf(msg, fmt, adx2); fnvlist_add_string(nvl, ZPOOL_HIST_INT_STR, msg); strfree(msg); |