mirror of
https://github.com/systemd/systemd.git
synced 2025-01-26 14:04:03 +03:00
remove redundant "remove trailing newlines" in udevadm info
This commit is contained in:
parent
3b738db6eb
commit
2dccc8b054
@ -75,10 +75,6 @@ static void print_all_attributes(struct udev *udev, const char *devpath, const c
|
||||
len = sizeof(value) - 1;
|
||||
dbg(udev, "attr '%s'='%s'(%zi)\n", dent->d_name, value, len);
|
||||
|
||||
/* remove trailing newlines */
|
||||
while (len && value[len-1] == '\n')
|
||||
value[--len] = '\0';
|
||||
|
||||
/* skip nonprintable attributes */
|
||||
while (len && isprint(value[len-1]))
|
||||
len--;
|
||||
|
Loading…
x
Reference in New Issue
Block a user