diff options
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-27 15:35:14 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-27 15:35:14 +0800
commitd21b5de8c0334b2c279684d64d8e669f79ca90cb (patch)
parent12b63716e2b92d429aa7be7a67f361b1abebd78c (diff)
nat: Do not use \n in the vty code.
When we really need a newline we need to use VTY_NEWLINE.
1 files changed, 5 insertions, 5 deletions
diff --git a/openbsc/src/nat/bsc_nat_vty.c b/openbsc/src/nat/bsc_nat_vty.c
index 7501767a..04b77de2 100644
--- a/openbsc/src/nat/bsc_nat_vty.c
+++ b/openbsc/src/nat/bsc_nat_vty.c
@@ -86,7 +86,7 @@ DEFUN(show_sccp, show_sccp_cmd, "show sccp connections",
SHOW_STR "Display information about current SCCP connections")
struct sccp_connections *con;
- vty_out(vty, "Listing all opening SCCP connections\n");
+ vty_out(vty, "Listing all opening SCCP connections%s", VTY_NEWLINE);
llist_for_each_entry(con, &_nat->sccp_connections, list_entry) {
vty_out(vty, "For BSC Nr: %d lac: %d; BSC ref: 0x%x; MUX ref: 0x%x; Network has ref: %d ref: 0x%x MSC/BSC mux: 0x%x/0x%x%s",
@@ -143,7 +143,7 @@ DEFUN(show_bsc_cfg, show_bsc_cfg_cmd, "show bsc config",
"show statistics",
- SHOW_STR "Display network statistics\n")
+ SHOW_STR "Display network statistics")
struct bsc_config *conf;
@@ -173,7 +173,7 @@ DEFUN(show_stats,
"close bsc connection BSC_NR",
- "Close the connection with the BSC identified by the config number.\n")
+ "Close the connection with the BSC identified by the config number.")
struct bsc_connection *bsc;
int bsc_nr = atoi(argv[0]);
@@ -249,7 +249,7 @@ DEFUN(cfg_nat_msc_port,
/* per BSC configuration */
-DEFUN(cfg_bsc, cfg_bsc_cmd, "bsc BSC_NR", "Select a BSC to configure\n")
+DEFUN(cfg_bsc, cfg_bsc_cmd, "bsc BSC_NR", "Select a BSC to configure")
int bsc_nr = atoi(argv[0]);
struct bsc_config *bsc;
@@ -284,7 +284,7 @@ DEFUN(cfg_bsc_token, cfg_bsc_token_cmd, "token TOKEN", "Set the token")
DEFUN(cfg_bsc_lac, cfg_bsc_lac_cmd, "location_area_code <0-65535>",
- "Set the Location Area Code (LAC) of this BSC\n")
+ "Set the Location Area Code (LAC) of this BSC")
struct bsc_config *tmp;
struct bsc_config *conf = vty->index;