projects
/
platform
/
adaptation
/
rpi
/
pass-hal-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ab8909
)
pass-hal: rpi: Replace LF with space from buffer
25/279225/3
accepted/tizen_7.0_unified
accepted/tizen_7.0_unified_hotfix
accepted/tizen_8.0_unified
accepted/tizen_unified_riscv
tizen_7.0
tizen_7.0_hotfix
tizen_8.0
accepted/tizen/7.0/unified/20221110.062053
accepted/tizen/7.0/unified/hotfix/20221116.104454
accepted/tizen/8.0/unified/20231005.092515
accepted/tizen/unified/20220805.131739
accepted/tizen/unified/20220809.093641
accepted/tizen/unified/riscv/20231220.095316
submit/tizen/20220805.011353
tizen_7.0_m2_release
tizen_8.0_m2_release
author
Chanwoo Choi
<cw00.choi@samsung.com>
Thu, 4 Aug 2022 02:27:55 +0000
(11:27 +0900)
committer
Chanwoo Choi
<cw00.choi@samsung.com>
Thu, 4 Aug 2022 08:57:57 +0000
(17:57 +0900)
Change-Id: I007af41740cde0f6d1af358a17665af4437ce25d
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/sysfs.c
patch
|
blob
|
history
diff --git
a/src/sysfs.c
b/src/sysfs.c
index
1256076
..
f6b6d8f
100644
(file)
--- a/
src/sysfs.c
+++ b/
src/sysfs.c
@@
-41,6
+41,8
@@
static int sysfs_read_buf(char *path, char *buf, int len)
if ((r < 0) || (r > len))
return -EIO;
+ /* Replace '\n' with space (ascii code is 32) */
+ buf[strcspn(buf, "\n")] = (char)32;
buf[r] = '\0';
return 0;