mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-24 15:22:34 +01:00
monitor: Print error message string for dump requests
This commit is contained in:
parent
bbca35c57b
commit
c80877808f
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user