From: Johannes Berg Date: Tue, 16 Sep 2008 16:54:39 +0000 (+0200) Subject: print out numeric error code X-Git-Tag: v0.9~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b49be3e1552f292dd90271dde8346179f7381fe1;p=thirdparty%2Fiw.git print out numeric error code --- diff --git a/iw.c b/iw.c index 5feb406..a9309e2 100644 --- a/iw.c +++ b/iw.c @@ -272,7 +272,7 @@ int main(int argc, char **argv) if (err == 1) usage(argv0); if (err < 0) - fprintf(stderr, "command failed: %s\n", strerror(-err)); + fprintf(stderr, "command failed: %s (%d)\n", strerror(-err), err); out: nl80211_cleanup(&nlstate);