summaryrefslogtreecommitdiffstats
path: root/src/vty/vty.c
diff options
context:
space:
mode:
authorHarald Welte2010-12-24 15:10:14 +0100
committerHarald Welte2010-12-24 15:10:14 +0100
commitdf327f6d81be9c73acba7b4edfa4f9336fcb686c (patch)
treec25b6efac95c0018877006031f3b9fcd5d5cb6fd /src/vty/vty.c
parentrate_ctr: No need to include the inttypes.h (diff)
downloadlibosmocore-df327f6d81be9c73acba7b4edfa4f9336fcb686c.tar.gz
libosmocore-df327f6d81be9c73acba7b4edfa4f9336fcb686c.tar.xz
libosmocore-df327f6d81be9c73acba7b4edfa4f9336fcb686c.zip
Use the app_info->name instead of the hostname
This makes more sense in case you run BCS, SGSN and other components on the same host. Having multiple telnet sessions with the same prompt can otherwise be confusing.
Diffstat (limited to 'src/vty/vty.c')
-rw-r--r--src/vty/vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vty/vty.c b/src/vty/vty.c
index 5c5a908..a5b16dc 100644
--- a/src/vty/vty.c
+++ b/src/vty/vty.c
@@ -306,7 +306,7 @@ static void vty_prompt(struct vty *vty)
const char *hostname;
if (vty->type == VTY_TERM) {
- hostname = host.name;
+ hostname = host.app_info->name;
if (!hostname) {
uname(&names);
hostname = names.nodename;