Skip to contentSkip to conversation

automount: Drop redundant \n in logerr()

PATCH In review Tomohiro Kusumi 2 participants 3 messages Jul 4, 2016 – Jul 6, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index bed8f7a..db01db8 100644
@@ -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
index 055e9d7..0721ba1 100644
@@ -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
maintainer
#1 lore raw
Quoted 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
---
 daemon/module.c | 2 +-
 lib/nss_parse.y | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
daemon/module.c +1 -1
index bed8f7a..db01db8 100644
@@ -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
index 055e9d7..0721ba1 100644

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

maintainer
#2 lore raw
In reply to Tomohiro Kusumi
Quoted 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
---
 daemon/module.c | 2 +-
 lib/nss_parse.y | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
daemon/module.c +1 -1
index bed8f7a..db01db8 100644
@@ -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
index 055e9d7..0721ba1 100644

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