device: remove redundant newlines from debug messages
authorFelix Fietkau <nbd@nbd.name>
Tue, 3 Sep 2024 10:06:39 +0000 (12:06 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 3 Sep 2024 10:06:39 +0000 (12:06 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
device.c
device.h

index 8513f726009cf6df364e4e68d71e4aba6c4f5ca5..405f4d27ebe1b0afc6d259e5e6bcc560a2f705d3 100644 (file)
--- 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);
 }
index 8e0cc0f265c8a88c1b01e000cb9ac287f7c8fb38..1c01b58889ed7b957bb9bc36af33f467d2d533ef 100644 (file)
--- 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);                              \