diff options
author | jimharris <jimharris@FreeBSD.org> | 2013-03-26 22:17:10 +0000 |
---|---|---|
committer | jimharris <jimharris@FreeBSD.org> | 2013-03-26 22:17:10 +0000 |
commit | 52767ea66d6dd421d987a4d140b6de1591f5c3f5 (patch) | |
tree | e10a75813b243d19de8ba65dc209d9991099f01e /sys/dev/nvme/nvme_private.h | |
parent | 73ba6bd9456829995453b1b29a0d6c5c2576fd13 (diff) | |
download | FreeBSD-src-52767ea66d6dd421d987a4d140b6de1591f5c3f5.zip FreeBSD-src-52767ea66d6dd421d987a4d140b6de1591f5c3f5.tar.gz |
Clean up debug prints.
1) Consistently use device_printf.
2) Make dump_completion and dump_command into something more
human-readable.
Sponsored by: Intel
Reviewed by: carl
Diffstat (limited to 'sys/dev/nvme/nvme_private.h')
-rw-r--r-- | sys/dev/nvme/nvme_private.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/nvme/nvme_private.h b/sys/dev/nvme/nvme_private.h index 6a98599..d1cd4b1 100644 --- a/sys/dev/nvme/nvme_private.h +++ b/sys/dev/nvme/nvme_private.h @@ -30,6 +30,7 @@ #define __NVME_PRIVATE_H__ #include <sys/param.h> +#include <sys/bus.h> #include <sys/kernel.h> #include <sys/lock.h> #include <sys/malloc.h> @@ -353,6 +354,9 @@ struct nvme_controller { #define mb() __asm volatile("mfence" ::: "memory") #endif +#define nvme_printf(ctrlr, fmt, args...) \ + device_printf(ctrlr->dev, fmt, ##args) + void nvme_ns_test(struct nvme_namespace *ns, u_long cmd, caddr_t arg); void nvme_ctrlr_cmd_identify_controller(struct nvme_controller *ctrlr, |