]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
add trailing \n to fprintfs missing it
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 11 Nov 2009 14:18:43 +0000 (15:18 +0100)
committerJohannes Berg <johannes@sipsolutions.net>
Wed, 11 Nov 2009 14:19:39 +0000 (15:19 +0100)
(pointer out by Holger)

link.c
mpath.c
scan.c
station.c

diff --git a/link.c b/link.c
index c17f0555a5f9425eabb55d6e48a3b43cbadf49bb..b046a2512534b555abe8a2a79c0ea0d37f36dd89 100644 (file)
--- a/link.c
+++ b/link.c
@@ -44,13 +44,13 @@ static int link_bss_handler(struct nl_msg *msg, void *arg)
                  genlmsg_attrlen(gnlh, 0), NULL);
 
        if (!tb[NL80211_ATTR_BSS]) {
-               fprintf(stderr, "bss info missing!");
+               fprintf(stderr, "bss info missing!\n");
                return NL_SKIP;
        }
        if (nla_parse_nested(bss, NL80211_BSS_MAX,
                             tb[NL80211_ATTR_BSS],
                             bss_policy)) {
-               fprintf(stderr, "failed to parse nested attributes!");
+               fprintf(stderr, "failed to parse nested attributes!\n");
                return NL_SKIP;
        }
 
@@ -136,13 +136,13 @@ static int print_link_sta(struct nl_msg *msg, void *arg)
                  genlmsg_attrlen(gnlh, 0), NULL);
 
        if (!tb[NL80211_ATTR_STA_INFO]) {
-               fprintf(stderr, "sta stats missing!");
+               fprintf(stderr, "sta stats missing!\n");
                return NL_SKIP;
        }
        if (nla_parse_nested(sinfo, NL80211_STA_INFO_MAX,
                             tb[NL80211_ATTR_STA_INFO],
                             stats_policy)) {
-               fprintf(stderr, "failed to parse nested attributes!");
+               fprintf(stderr, "failed to parse nested attributes!\n");
                return NL_SKIP;
        }
 
@@ -161,7 +161,7 @@ static int print_link_sta(struct nl_msg *msg, void *arg)
        if (sinfo[NL80211_STA_INFO_TX_BITRATE]) {
                if (nla_parse_nested(rinfo, NL80211_RATE_INFO_MAX,
                                     sinfo[NL80211_STA_INFO_TX_BITRATE], rate_policy)) {
-                       fprintf(stderr, "failed to parse nested rate attributes!");
+                       fprintf(stderr, "failed to parse nested rate attributes!\n");
                } else {
                        printf("\ttx bitrate: ");
                        if (rinfo[NL80211_RATE_INFO_BITRATE]) {
diff --git a/mpath.c b/mpath.c
index e8484816bf24268497d63980ff25141315cf2114..045238218bf95b944c7529f504fc6ccfc0373d8e 100644 (file)
--- a/mpath.c
+++ b/mpath.c
@@ -56,13 +56,13 @@ static int print_mpath_handler(struct nl_msg *msg, void *arg)
         */
 
        if (!tb[NL80211_ATTR_MPATH_INFO]) {
-               fprintf(stderr, "mpath info missing!");
+               fprintf(stderr, "mpath info missing!\n");
                return NL_SKIP;
        }
        if (nla_parse_nested(pinfo, NL80211_MPATH_INFO_MAX,
                             tb[NL80211_ATTR_MPATH_INFO],
                             mpath_policy)) {
-               fprintf(stderr, "failed to parse nested attributes!");
+               fprintf(stderr, "failed to parse nested attributes!\n");
                return NL_SKIP;
        }
 
diff --git a/scan.c b/scan.c
index 02437d109dda2cd6b5a29b4468b58d31a058c609..99df462d6c5bbd989406b387d4fd31f1f1734193 100644 (file)
--- a/scan.c
+++ b/scan.c
@@ -762,13 +762,13 @@ static int print_bss_handler(struct nl_msg *msg, void *arg)
                  genlmsg_attrlen(gnlh, 0), NULL);
 
        if (!tb[NL80211_ATTR_BSS]) {
-               fprintf(stderr, "bss info missing!");
+               fprintf(stderr, "bss info missing!\n");
                return NL_SKIP;
        }
        if (nla_parse_nested(bss, NL80211_BSS_MAX,
                             tb[NL80211_ATTR_BSS],
                             bss_policy)) {
-               fprintf(stderr, "failed to parse nested attributes!");
+               fprintf(stderr, "failed to parse nested attributes!\n");
                return NL_SKIP;
        }
 
index 609ce952651ff7eb70c9f4c9eb74f27e7b6a4230..8cf038dfcf6ab9ccb79dfae28f29b9153444d12b 100644 (file)
--- a/station.c
+++ b/station.c
@@ -67,13 +67,13 @@ static int print_sta_handler(struct nl_msg *msg, void *arg)
         */
 
        if (!tb[NL80211_ATTR_STA_INFO]) {
-               fprintf(stderr, "sta stats missing!");
+               fprintf(stderr, "sta stats missing!\n");
                return NL_SKIP;
        }
        if (nla_parse_nested(sinfo, NL80211_STA_INFO_MAX,
                             tb[NL80211_ATTR_STA_INFO],
                             stats_policy)) {
-               fprintf(stderr, "failed to parse nested attributes!");
+               fprintf(stderr, "failed to parse nested attributes!\n");
                return NL_SKIP;
        }
 
@@ -103,7 +103,7 @@ static int print_sta_handler(struct nl_msg *msg, void *arg)
        if (sinfo[NL80211_STA_INFO_TX_BITRATE]) {
                if (nla_parse_nested(rinfo, NL80211_RATE_INFO_MAX,
                                     sinfo[NL80211_STA_INFO_TX_BITRATE], rate_policy)) {
-                       fprintf(stderr, "failed to parse nested rate attributes!");
+                       fprintf(stderr, "failed to parse nested rate attributes!\n");
                } else {
                        printf("\n\ttx bitrate:\t");
                        if (rinfo[NL80211_RATE_INFO_BITRATE]) {