From: Mike Yuan Date: Fri, 22 Sep 2023 14:52:56 +0000 (+0800) Subject: sleep: rebreak lines in check_wakeup_type X-Git-Tag: v255-rc1~407^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=43309f14d95da0e7f27e28dbed5e8fa31b513b3f;p=thirdparty%2Fsystemd.git sleep: rebreak lines in check_wakeup_type --- 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