From cdb41673ceea4d2c1cd748580748a8c77dcc5100 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 3 Sep 2024 12:06:39 +0200 Subject: [PATCH] device: remove redundant newlines from debug messages Signed-off-by: Felix Fietkau --- device.c | 2 +- device.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/device.c b/device.c index 8513f72..405f4d2 100644 --- a/device.c +++ b/device.c @@ -939,7 +939,7 @@ device_refresh_present(struct device *dev) if (dev->disabled || dev->deferred) state = false; - D(DEVICE, "refresh device %s present: sys=%d disabled=%d deferred=%d\n", + D(DEVICE, "refresh device %s present: sys=%d disabled=%d deferred=%d", dev->ifname, dev->sys_present, dev->disabled, dev->deferred); __device_set_present(dev, state, false); } diff --git a/device.h b/device.h index 8e0cc0f..1c01b58 100644 --- a/device.h +++ b/device.h @@ -369,7 +369,7 @@ const char *device_event_name(enum device_event ev); void __device_broadcast_event(struct device *dev, enum device_event ev); #define device_broadcast_event(dev, ev) do { \ struct device *__ev_dev = (dev); \ - D(DEVICE, "%s: event (%s)\n", \ + D(DEVICE, "%s: event (%s)", \ (__ev_dev && __ev_dev->ifname[0] ? __ev_dev->ifname : "(none)"), \ device_event_name(ev)); \ __device_broadcast_event(__ev_dev, ev); \ @@ -379,7 +379,7 @@ void _device_set_present(struct device *dev, bool state); #define device_set_present(dev, state) do { \ struct device *__ev_dev = (dev); \ bool __ev_state = state; \ - D(DEVICE, "%s: set present=%d\n", \ + D(DEVICE, "%s: set present=%d", \ (__ev_dev && __ev_dev->ifname[0] ? __ev_dev->ifname : "(none)"), \ __ev_state); \ _device_set_present(__ev_dev, __ev_state); \ -- 2.30.2