From e02fa649c171a7806bdec74128bbb2bdbacea9b3 Mon Sep 17 00:00:00 2001 From: Karel Klic Date: Wed, 7 Jul 2010 11:44:35 +0200 Subject: Display hostname in abrt-cli if it's available. --- src/CLI/CLI.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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); } /** -- cgit