From c80877808ffc4fb00fea282762c2e0a18349f929 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 10 Aug 2014 10:38:14 -0700 Subject: [PATCH] monitor: Print error message string for dump requests --- monitor/nlmon.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/monitor/nlmon.c b/monitor/nlmon.c index 81673bb9..c894262f 100644 --- a/monitor/nlmon.c +++ b/monitor/nlmon.c @@ -1170,7 +1170,11 @@ static void print_message(const struct timeval *tv, enum msg_type type, print_field("Status: %s (%d)", strerror(status), status); break; case MSG_COMPLETE: - print_field("Status: %d", status); + if (status < 0) + print_field("Status: %s (%d)", + strerror(-status), -status); + else + print_field("Status: %d", status); break; } }