From: Uwe Hermann Date: Tue, 29 Jan 2013 11:55:00 +0000 (+0100) Subject: hwdriver: Use message logging helpers. X-Git-Tag: dsupstream~294 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=bd36d826d4b9916034c6268919e2a72a0d7ea000;p=libsigrok.git hwdriver: Use message logging helpers. --- 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 *