diff options
author | Karel Klic <kklic@redhat.com> | 2010-07-07 11:44:35 +0200 |
---|---|---|
committer | Karel Klic <kklic@redhat.com> | 2010-07-07 11:44:35 +0200 |
commit | e02fa649c171a7806bdec74128bbb2bdbacea9b3 (patch) | |
tree | 5c66f2d458510cd86dd40ad89e4dad2d058f7f04 | |
parent | ae671b01f1cde7a7968d52843f110c52b7083b2d (diff) | |
download | abrt-e02fa649c171a7806bdec74128bbb2bdbacea9b3.tar.gz abrt-e02fa649c171a7806bdec74128bbb2bdbacea9b3.tar.xz abrt-e02fa649c171a7806bdec74128bbb2bdbacea9b3.zip |
Display hostname in abrt-cli if it's available.
-rw-r--r-- | src/CLI/CLI.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/CLI/CLI.cpp b/src/CLI/CLI.cpp index c751bd37..0a9384d2 100644 --- a/src/CLI/CLI.cpp +++ b/src/CLI/CLI.cpp @@ -58,6 +58,11 @@ static void print_crash(const map_crash_data_t &crash) get_crash_data_item_content(crash, FILENAME_EXECUTABLE).c_str(), timeloc, get_crash_data_item_content(crash, CD_COUNT).c_str()); + + /* Print the hostname if it's available. */ + const char *hostname = get_crash_data_item_content_or_NULL(crash, FILENAME_HOSTNAME); + if (hostname) + printf(_("\tHostname : %s\n"), hostname); } /** |