From edd7b4fb2440b5aab38b7d318a784d92b711852f Mon Sep 17 00:00:00 2001 From: Richard Sailer Date: Sun, 4 Aug 2019 01:28:08 +0200 Subject: [PATCH] Move simple macro up to avoid compiler warning --- src/tuxedo_keyboard.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tuxedo_keyboard.c b/src/tuxedo_keyboard.c index 8469d34..f86be46 100644 --- a/src/tuxedo_keyboard.c +++ b/src/tuxedo_keyboard.c @@ -18,6 +18,9 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#define DRIVER_NAME "tuxedo_keyboard" +#define pr_fmt(fmt) DRIVER_NAME ": " fmt + #include #include #include @@ -33,9 +36,6 @@ MODULE_VERSION("1.0.0"); /* :::: Module specific Constants and simple Macros :::: */ -#define DRIVER_NAME "tuxedo_keyboard" -#define pr_fmt(fmt) DRIVER_NAME ": " fmt - #define __TUXEDO_PR(lvl, fmt, ...) do { pr_##lvl(fmt, ##__VA_ARGS__); } while (0) #define TUXEDO_INFO(fmt, ...) __TUXEDO_PR(info, fmt, ##__VA_ARGS__) #define TUXEDO_ERROR(fmt, ...) __TUXEDO_PR(err, fmt, ##__VA_ARGS__)