diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h index f141562..b64069e 100644 --- a/include/dahdi/kernel.h +++ b/include/dahdi/kernel.h @@ -101,10 +101,8 @@ # else #define dev_name(dev) ((dev)->bus_id) # endif -#define dev_set_name(dev, fmt, ...) \ - do { \ - snprintf((dev)->bus_id, BUS_ID_SIZE, fmt, ## __VA_ARGS__); \ - } while (0) +#define dev_set_name(dev, format, ...) \ + snprintf((dev)->bus_id, BUS_ID_SIZE, format, ## __VA_ARGS__) #endif /*! Default chunk size for conferences and such -- static right now, might make