Remove extra newline from spa_set_allocator().

zfs_dbgmsg() does not need newline at the end of the message.

While there, slightly update/sync FreeBSD __dprintf().

Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by:	Alexander Motin <mav@FreeBSD.org>
Sponsored by:	iXsystems, Inc.
Closes #16536
This commit is contained in:
Alexander Motin
2024-09-17 16:15:42 -04:00
committed by GitHub
parent bca9b64e7b
commit ac04407ffe
2 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -1679,7 +1679,7 @@ spa_set_allocator(spa_t *spa, const char *allocator)
int a = spa_find_allocator_byname(allocator);
if (a < 0) a = 0;
spa->spa_active_allocator = a;
zfs_dbgmsg("spa allocator: %s\n", metaslab_allocators[a].msop_name);
zfs_dbgmsg("spa allocator: %s", metaslab_allocators[a].msop_name);
}
int