Module Name: src Committed By: riastradh Date: Tue Jun 15 23:24:57 UTC 2021
Modified Files: src/sys/dev: dev_verbose.h Log Message: dev_verbose(9): Use a comma expression, not an expression block. Should pacify clang's -Wcompound-token-split-by-macro. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/dev/dev_verbose.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/dev_verbose.h diff -u src/sys/dev/dev_verbose.h:1.6 src/sys/dev/dev_verbose.h:1.7 --- src/sys/dev/dev_verbose.h:1.6 Wed Jun 9 23:22:51 2021 +++ src/sys/dev/dev_verbose.h Tue Jun 15 23:24:57 2021 @@ -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 \ 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 le 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; \ } \