]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
fix error output
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 16 Sep 2008 16:13:50 +0000 (18:13 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Tue, 16 Sep 2008 16:13:50 +0000 (18:13 +0200)
iw.c

diff --git a/iw.c b/iw.c
index 7901fb50e7137c1126e08a2dd5347ce4e3db4a2e..c3b9297d42e435b4df9b8ffe958fca4eaf4b819e 100644 (file)
--- a/iw.c
+++ b/iw.c
@@ -228,7 +228,7 @@ int main(int argc, char **argv)
        if (err == 1)
                usage(argv0);
        if (err < 0)
-               fprintf(stderr, "command failed: %s", strerror(err));
+               fprintf(stderr, "command failed: %s\n", strerror(-err));
 
  out:
        nl80211_cleanup(&nlstate);