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; } }