summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-05-05 14:34:32 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-05-06 07:39:09 +0200
commit4b9b6ddb9f41356d85d5a056c6b9fafdf8529dc0 (patch)
treec0f976a2d16353d614ece8af4226f7e1fc5da28d /cpukit
parente78c0806cbbf0c9fae5c8c355ea81636b704f908 (diff)
downloadrtems-4b9b6ddb9f41356d85d5a056c6b9fafdf8529dc0.tar.bz2
Use rtems_get_version_string()
Update #3970.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/libmisc/shell/shell.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/libmisc/shell/shell.c b/cpukit/libmisc/shell/shell.c
index f00ae54b49..79c1afcb5a 100644
--- a/cpukit/libmisc/shell/shell.c
+++ b/cpukit/libmisc/shell/shell.c
@@ -683,7 +683,7 @@ static bool rtems_shell_login(rtems_shell_env_t *env, FILE * in,FILE * out)
fprintf(out,"RTEMS");
break;
case 'V':
- fprintf(out,"%s\n%s",_RTEMS_version, _Copyright_Notice);
+ fprintf(out,"%s\n%s",rtems_get_version_string(), _Copyright_Notice);
break;
case '@':
fprintf(out,"@");
@@ -735,10 +735,10 @@ static bool rtems_shell_login(rtems_shell_env_t *env, FILE * in,FILE * out)
fprintf(out,"(" CPU_NAME "/" CPU_MODEL_NAME ")");
break;
case 'r':
- fprintf(out,_RTEMS_version);
+ fprintf(out,rtems_get_version_string());
break;
case 'v':
- fprintf(out,"%s\n%s",_RTEMS_version,_Copyright_Notice);
+ fprintf(out,"%s\n%s",rtems_get_version_string(),_Copyright_Notice);
break;
case '%':fprintf(out,"%%");
break;