]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
print out numeric error code
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 16 Sep 2008 16:54:39 +0000 (18:54 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Tue, 16 Sep 2008 16:54:39 +0000 (18:54 +0200)
iw.c

diff --git a/iw.c b/iw.c
index 5feb406ff2061e9923ef869e963c78a307841c6d..a9309e2b5007cbf90ea32df2847c316ffc577d18 100644 (file)
--- 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);