summaryrefslogtreecommitdiff
path: root/sys/dev/dev_verbose.h
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2021-06-15 23:24:57 +0000
committerriastradh <riastradh@NetBSD.org>2021-06-15 23:24:57 +0000
commit85bd87dab24631801822b54d2e7f84aabaeb05aa (patch)
tree4199372ff5e22edf139e154b7d143a7733be5d12 /sys/dev/dev_verbose.h
parent40cdca9960688c0867f6c9550ef4446fa81a4e5c (diff)
dev_verbose(9): Use a comma expression, not an expression block.
Should pacify clang's -Wcompound-token-split-by-macro.
Diffstat (limited to 'sys/dev/dev_verbose.h')
-rw-r--r--sys/dev/dev_verbose.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/dev_verbose.h b/sys/dev/dev_verbose.h
index 8f655f037aa..75a5baaab09 100644
--- a/sys/dev/dev_verbose.h
+++ b/sys/dev/dev_verbose.h
@@ -1,4 +1,4 @@
-/* $NetBSD: dev_verbose.h,v 1.6 2021/06/09 23:22:51 pgoyette Exp $ */
+/* $NetBSD: dev_verbose.h,v 1.7 2021/06/15 23:24:57 riastradh Exp $ */
/*
* Redistribution and use in source and binary forms, with or without
@@ -117,7 +117,7 @@ tag ## _findvendor(char *buf, size_t len, uint16_t vendor) \
\
tag ## _load_verbose(); \
MODULE_HOOK_CALL(tag ## _findvendor_hook, (buf, len, vendor), \
- {snprintf(buf, len, "vendor %4.4x", vendor); NULL; }, \
+ (snprintf(buf, len, "vendor %4.4x", vendor), NULL), \
retval); \
return retval; \
} \
@@ -131,7 +131,7 @@ tag ## _findproduct(char *buf, size_t len, uint16_t vendor, \
tag ## _load_verbose(); \
MODULE_HOOK_CALL(tag ## _findproduct_hook, \
(buf, len, vendor, product), \
- {snprintf(buf, len, "product %4.4x", product); NULL; }, \
+ (snprintf(buf, len, "product %4.4x", product), NULL), \
retval); \
return retval; \
} \