automount: Drop redundant \n in logerr()
Subsystems (2)
PATCH 1/1 automount: Drop redundant \n in logerr()
Line break isn't necessary from the way logerr (and logmsg) is implemented, and these two probably aren't intentional.
--- daemon/module.c | 2 +- lib/nss_parse.y | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
daemon/module.c +1 -1
@@ -34,7 +34,7 @@ int load_autofs4_module(void)*/ fp =open_fopen_r ("/proc/filesystems" );if (!fp) { -logerr ("cannot open /proc/filesystems\n" ); +logerr ("cannot open /proc/filesystems" );return 0 ; }
lib/nss_parse.y +1 -1
@@ -169,7 +169,7 @@ int nsswitch_parse(struct list_head *list) nsswitch = open_fopen_r(NSSWITCH_FILE); if (!nsswitch) { - logerr("couldn't open %s\n", NSSWITCH_FILE); + logerr("couldn't open %s", NSSWITCH_FILE); return 1; }
Signature · 4 lines
2.5.5 -- To unsubscribe from this list: send the line "unsubscribe autofs" in
Ian Kent
maintainerQuoted 2 lines · Tomohiro Kusumi
Line break isn't necessary from the way logerr (and logmsg) is implemented, and these two probably aren't intentional.
Also added to the list.
Quoted 25 lines
Signed-off-by Tomohiro Kusumi <[email protected]>--- daemon/module.c | 2 +- lib/nss_parse.y | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)daemon/module.c +1
-1@@ -34,7 +34,7 @@ int load_autofs4_module(void)*/ fp =open_fopen_r ("/proc/filesystems" );if (!fp) { -logerr ("cannot open /proc/filesystems\n" ); +logerr ("cannot open /proc/filesystems" );return 0 ; }lib/nss_parse.y +0
-0
lib/nss_parse.y int nsswitch_parse(struct list_head *list) · line 175
Quoted 8 lines
lib/nss_parse.y +1
-1@@ -169,7 +169,7 @@ int nsswitch_parse(struct list_head *list) nsswitch = open_fopen_r(NSSWITCH_FILE); if (!nsswitch) { - logerr("couldn't open %s\n", NSSWITCH_FILE); + logerr("couldn't open %s", NSSWITCH_FILE); return 1; }
--
To unsubscribe from this list: send the line "unsubscribe autofs" in
Ian Kent
maintainerQuoted 2 lines · Tomohiro Kusumi
Line break isn't necessary from the way logerr (and logmsg) is implemented, and these two probably aren't intentional.
Added to the list, same as the previous in terms of pushing it to the repo.
Quoted 25 lines
Signed-off-by Tomohiro Kusumi <[email protected]>--- daemon/module.c | 2 +- lib/nss_parse.y | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)daemon/module.c +1
-1@@ -34,7 +34,7 @@ int load_autofs4_module(void)*/ fp =open_fopen_r ("/proc/filesystems" );if (!fp) { -logerr ("cannot open /proc/filesystems\n" ); +logerr ("cannot open /proc/filesystems" );return 0 ; }lib/nss_parse.y +0
-0
lib/nss_parse.y int nsswitch_parse(struct list_head *list) · line 175
Quoted 8 lines
lib/nss_parse.y +1
-1@@ -169,7 +169,7 @@ int nsswitch_parse(struct list_head *list) nsswitch = open_fopen_r(NSSWITCH_FILE); if (!nsswitch) { - logerr("couldn't open %s\n", NSSWITCH_FILE); + logerr("couldn't open %s", NSSWITCH_FILE); return 1; }
--
To unsubscribe from this list: send the line "unsubscribe autofs" in