aboutsummaryrefslogtreecommitdiffstats
path: root/src/vty
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-04-05 03:08:26 +0200
committerlaforge <laforge@osmocom.org>2021-04-07 16:33:18 +0000
commit2d1a9fabcc9fb394fee6a857de797fe802fa4291 (patch)
treeb799b7e1a788960a179e533b139b5e66b5f70142 /src/vty
parentad34465349bdc40e30047122ac3f61ed118952ff (diff)
vty/logging: ensure consistent '%' prefix for warnings
Diffstat (limited to 'src/vty')
-rw-r--r--src/vty/logging_vty.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/vty/logging_vty.c b/src/vty/logging_vty.c
index cc250c0a..5f31b395 100644
--- a/src/vty/logging_vty.c
+++ b/src/vty/logging_vty.c
@@ -131,7 +131,7 @@ DEFUN(enable_logging,
conn = (struct telnet_connection *) vty->priv;
if (conn->dbg) {
- vty_out(vty, "Logging already enabled.%s", VTY_NEWLINE);
+ vty_out(vty, "%% Logging already enabled.%s", VTY_NEWLINE);
return CMD_WARNING;
}
@@ -158,7 +158,7 @@ struct log_target *osmo_log_vty2tgt(struct vty *vty)
conn = (struct telnet_connection *) vty->priv;
if (!conn->dbg)
- vty_out(vty, "Logging was not enabled.%s", VTY_NEWLINE);
+ vty_out(vty, "%% Logging was not enabled.%s", VTY_NEWLINE);
return conn->dbg;
}
@@ -372,12 +372,12 @@ DEFUN(logging_level,
int level = log_parse_level(argv[1]);
if (level < 0) {
- vty_out(vty, "Invalid level '%s'%s", argv[1], VTY_NEWLINE);
+ vty_out(vty, "%% Invalid level '%s'%s", argv[1], VTY_NEWLINE);
return CMD_WARNING;
}
if (category < 0) {
- vty_out(vty, "Invalid category '%s'%s", argv[0], VTY_NEWLINE);
+ vty_out(vty, "%% Invalid category '%s'%s", argv[0], VTY_NEWLINE);
return CMD_WARNING;
}
@@ -595,7 +595,7 @@ gDEFUN(cfg_description, cfg_description_cmd,
char **dptr = vty->index_sub;
if (!dptr) {
- vty_out(vty, "vty->index_sub == NULL%s", VTY_NEWLINE);
+ vty_out(vty, "%% vty->index_sub == NULL%s", VTY_NEWLINE);
return CMD_WARNING;
}
@@ -616,7 +616,7 @@ gDEFUN(cfg_no_description, cfg_no_description_cmd,
char **dptr = vty->index_sub;
if (!dptr) {
- vty_out(vty, "vty->index_sub == NULL%s", VTY_NEWLINE);
+ vty_out(vty, "%% vty->index_sub == NULL%s", VTY_NEWLINE);
return CMD_WARNING;
}