3
0
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:
Marcel Holtmann 2014-08-10 10:38:14 -07:00
parent bbca35c57b
commit c80877808f

View File

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