mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-12 11:02:37 +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);
|
print_field("Status: %s (%d)", strerror(status), status);
|
||||||
break;
|
break;
|
||||||
case MSG_COMPLETE:
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user