]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
print unknown events
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 8 Dec 2008 17:32:43 +0000 (18:32 +0100)
committerJohannes Berg <johannes@sipsolutions.net>
Mon, 8 Dec 2008 17:32:43 +0000 (18:32 +0100)
iw.c

diff --git a/iw.c b/iw.c
index 7396052df8e575157ee83ab68a7bd64bb2c5c52d..afae6437f89b82c02e6c7e775af0ec19e9333f16 100644 (file)
--- a/iw.c
+++ b/iw.c
@@ -284,12 +284,14 @@ static int print_event(struct nl_msg *msg, void *arg)
                  genlmsg_attrlen(gnlh, 0), NULL);
                           
        switch (gnlh->cmd) {
-       case NL80211_CMD_NEW_WIPHY: {
+       case NL80211_CMD_NEW_WIPHY:
                printf("wiphy rename: phy #%d to %s\n",
                       nla_get_u32(tb[NL80211_ATTR_WIPHY]),
                       nla_get_string(tb[NL80211_ATTR_WIPHY_NAME]));
                break;
-       }
+       default:
+               printf("unknown event: %d\n", gnlh->cmd);
+               break;
        }
 
        return NL_SKIP;