drop redundant \n with err calls
Since err adds newlines, no need to include our own.
Bug: None
Test: CQ passes
Change-Id: I2699e7d5ca34bd213d6af9f75854c4b9e0e3d7da
diff --git a/minijail0_cli.c b/minijail0_cli.c
index 765b6d8..8e724ad 100644
--- a/minijail0_cli.c
+++ b/minijail0_cli.c
@@ -590,7 +590,7 @@
if (curr_opt->name == NULL) {
errx(1,
"Unable to recognize '%s' as Minijail conf entry key, "
- "please refer to minijail0(5) for syntax and examples.\n",
+ "please refer to minijail0(5) for syntax and examples.",
entry->key);
}
opt = curr_opt->val;
@@ -933,7 +933,7 @@
if (conf_entry_list != NULL) {
errx(1,
"Nested config file specification is "
- "not allowed.\n");
+ "not allowed.");
}
conf_entry_list = new_config_entry_list();
conf_index = 0;
@@ -945,7 +945,7 @@
errx(1,
"Unable to parse %s as Minijail conf file, "
"please refer to minijail0(5) for syntax "
- "and examples.\n",
+ "and examples.",
optarg);
}
break;
@@ -1002,9 +1002,9 @@
*/
if (change_remount && !mount_ns) {
errx(1, "No need to use -K (skip remounting '/') or "
- "-K<mode> (remount '/' as <mode>)\n"
+ "-K<mode> (remount '/' as <mode>) "
"without -v (new mount namespace).\n"
- "Do you need to add '-v' explicitly?\n");
+ "Do you need to add '-v' explicitly?");
}
/* Configure the remount flag here to avoid having -v override it. */