Skip to content

Commit

Permalink
core: remove host_os and distname from message.cc
Browse files Browse the repository at this point in the history
In message.cc there were const char* for host_os and distname that are
only meaningful for the debugger run during btraceback. As this doesn't
contain substantial information, this patch removes it.
  • Loading branch information
arogge committed May 25, 2020
1 parent dbdfa92 commit f8c199d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
3 changes: 0 additions & 3 deletions core/scripts/btraceback.dbx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ echo "exename ==> \c"; print -l (char *)exename
echo "exepath ==> \c"; print -l (char *)exepath
echo "catalog_db ==> \c"; print -l (char *)catalog_db
echo "version ==> \c"; print -l (char *)version
echo "host_os ==> \c"; print -l (char *)host_os
echo "distname ==> \c"; print -l (char *)distname
echo "distver ==> \c"; print -l (char *)distver
echo "dist_name ==> \c"; print -l (char *)dist_name

echo "******** RUNNING THREADS/LWPS:"
echo
Expand Down
3 changes: 0 additions & 3 deletions core/scripts/btraceback.gdb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@ print exepath
print catalog_db
print kBareosVersionStrings.FullWithDate
print kBareosVersionStrings.BinaryInfo
print host_os
print distname
print distver
print host_name
print dist_name
show env TestName
bt
thread apply all bt
Expand Down
2 changes: 0 additions & 2 deletions core/src/lib/message.cc
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ static bool trace = false;
static bool hangup = false;

/* Constants */
const char* host_os = HOST_OS;
const char* distname = DISTNAME;
const char* distver = DISTVER;

/*
Expand Down

0 comments on commit f8c199d

Please sign in to comment.