From: Uwe Hermann Date: Fri, 3 Jan 2014 21:39:21 +0000 (+0100) Subject: new-driver: Update for recent LOG_PREFIX changes. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=36c9d998af693111f1135dd676c729766753778d;p=sigrok-util.git new-driver: Update for recent LOG_PREFIX changes. --- diff --git a/source/drv-protocol.h b/source/drv-protocol.h index 28ab52b..0045b17 100644 --- a/source/drv-protocol.h +++ b/source/drv-protocol.h @@ -26,13 +26,7 @@ #include "libsigrok-internal.h" /* Message logging helpers with subsystem-specific prefix string. */ -#define LOG_PREFIX "${short}: " -#define sr_log(l, s, args...) sr_log(l, LOG_PREFIX s, ## args) -#define sr_spew(s, args...) sr_spew(LOG_PREFIX s, ## args) -#define sr_dbg(s, args...) sr_dbg(LOG_PREFIX s, ## args) -#define sr_info(s, args...) sr_info(LOG_PREFIX s, ## args) -#define sr_warn(s, args...) sr_warn(LOG_PREFIX s, ## args) -#define sr_err(s, args...) sr_err(LOG_PREFIX s, ## args) +#define LOG_PREFIX "${short}" /** Private, per-device-instance driver context. */ struct dev_context {