zdb/ztest: send dbgmsg output to stderr
commit3c941d18183455138f7c5dcc212177bd3cea8afc
authorRob Norris <rob.norris@klarasystems.com>
Fri, 10 May 2024 03:58:26 +0000 (10 13:58 +1000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 14 May 2024 16:49:00 +0000 (14 09:49 -0700)
treec53a01b7b96915f25a4bb3b0c53a620bffd9c70f
parentfa99d9cd9cbc6aca3245afcfe321b8226985597d
zdb/ztest: send dbgmsg output to stderr

And, make the output fd an arg to zfs_dbgmsg_print(). This is a change
in behaviour, but keeps it consistent with where crash traces go, and
it's easy to argue this is what we want anyway; this is information
about the task, not the actual output of the task.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #16181
cmd/zdb/zdb.c
cmd/ztest.c
include/sys/zfs_debug.h
module/os/freebsd/zfs/zfs_debug.c
module/os/linux/zfs/zfs_debug.c