From bd36d826d4b9916034c6268919e2a72a0d7ea000 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 29 Jan 2013 12:55:00 +0100 Subject: [PATCH] hwdriver: Use message logging helpers. --- hwdriver.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hwdriver.c b/hwdriver.c index 9ace9f09..def770e9 100644 --- a/hwdriver.c +++ b/hwdriver.c @@ -27,6 +27,15 @@ #include "libsigrok.h" #include "libsigrok-internal.h" +/* Message logging helpers with driver-specific prefix string. */ +#define DRIVER_LOG_DOMAIN "hwdriver: " +#define sr_log(l, s, args...) sr_log(l, DRIVER_LOG_DOMAIN s, ## args) +#define sr_spew(s, args...) sr_spew(DRIVER_LOG_DOMAIN s, ## args) +#define sr_dbg(s, args...) sr_dbg(DRIVER_LOG_DOMAIN s, ## args) +#define sr_info(s, args...) sr_info(DRIVER_LOG_DOMAIN s, ## args) +#define sr_warn(s, args...) sr_warn(DRIVER_LOG_DOMAIN s, ## args) +#define sr_err(s, args...) sr_err(DRIVER_LOG_DOMAIN s, ## args) + /** * @file *