942940330e
Resolves: #1952378,#2151612,#2167468,#2170500
34 lines
1.4 KiB
Diff
34 lines
1.4 KiB
Diff
From 57eb0c1c4903901717b4a81dd674aabb2c0ab2b3 Mon Sep 17 00:00:00 2001
|
|
From: Yu Watanabe <watanabe.yu+github@gmail.com>
|
|
Date: Mon, 14 Nov 2022 02:52:55 +0900
|
|
Subject: [PATCH] sleep: fix indentation
|
|
|
|
(cherry picked from commit 3332cfe1764e3c15d9af2ef68097d0f698fddb3d)
|
|
|
|
Related: #2151612
|
|
---
|
|
src/shared/sleep-config.c | 10 +++++-----
|
|
1 file changed, 5 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/src/shared/sleep-config.c b/src/shared/sleep-config.c
|
|
index 25c3bd2925..4c08e97c8a 100644
|
|
--- a/src/shared/sleep-config.c
|
|
+++ b/src/shared/sleep-config.c
|
|
@@ -388,11 +388,11 @@ static int put_battery_discharge_rate(int estimated_battery_discharge_rate, uint
|
|
estimated_battery_discharge_rate);
|
|
|
|
r = write_string_filef(
|
|
- DISCHARGE_RATE_FILEPATH,
|
|
- WRITE_STRING_FILE_CREATE | WRITE_STRING_FILE_MKDIR_0755 | (trunc ? WRITE_STRING_FILE_TRUNCATE : 0),
|
|
- "%"PRIu64" %d",
|
|
- system_hash_id,
|
|
- estimated_battery_discharge_rate);
|
|
+ DISCHARGE_RATE_FILEPATH,
|
|
+ WRITE_STRING_FILE_CREATE | WRITE_STRING_FILE_MKDIR_0755 | (trunc ? WRITE_STRING_FILE_TRUNCATE : 0),
|
|
+ "%"PRIu64" %d",
|
|
+ system_hash_id,
|
|
+ estimated_battery_discharge_rate);
|
|
if (r < 0)
|
|
return log_debug_errno(r, "Failed to update %s: %m", DISCHARGE_RATE_FILEPATH);
|
|
|