From 43309f14d95da0e7f27e28dbed5e8fa31b513b3f Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Fri, 22 Sep 2023 22:52:56 +0800 Subject: [PATCH] sleep: rebreak lines in check_wakeup_type --- src/sleep/sleep.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c index f837e4d21a0..54682b973bf 100644 --- a/src/sleep/sleep.c +++ b/src/sleep/sleep.c @@ -189,12 +189,15 @@ static int check_wakeup_type(void) { if (r < 0) return log_debug_errno(r, "Unable to read %s: %m", dmi_object_path); if (bufsize < 25) - return log_debug_errno(SYNTHETIC_ERRNO(EINVAL), "Only read %zu bytes from %s (expected 25)", bufsize, dmi_object_path); + return log_debug_errno(SYNTHETIC_ERRNO(EINVAL), + "Only read %zu bytes from %s (expected 25)", + bufsize, dmi_object_path); /* index 1 stores the size of table */ tablesize = (uint8_t) buf[1]; if (tablesize < 25) - return log_debug_errno(SYNTHETIC_ERRNO(EINVAL), "Table size lesser than the index[0x18] where waketype byte is available."); + return log_debug_errno(SYNTHETIC_ERRNO(EINVAL), + "Table size less than the index[0x18] where waketype byte is available."); wakeup_type_byte = (uint8_t) buf[24]; /* 0 is Reserved and 8 is AC Power Restored. As per table 12 in -- 2.47.3