Skip to contentSkip to conversation

info: fix printf taking the wrong amount of arguments

PATCH Applied Christoffer Holmstedt 2 participants 2 messages Jun 1, 2015 IEEE 802.15.4

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 info: fix printf taking the wrong amount of arguments

---
 src/info.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/info.c +1 -1
index e8f5dda8da94..926a63adecce 100644
@@ -54,7 +54,7 @@ static int print_phy_handler(struct nl_msg *msg, void *arg)
 				    rem_page) {
 			channel = nla_get_u32(nl_page);
 			if (channel) {
-				printf("\tpage %d: ", page, channel);
+				printf("\tpage %d: ", page);
 				for (i = 0; i <= 31; i++) {
 					if (channel & 0x1)
 						printf("%d,", i);
Signature · 5 lines
1.7.10.4


-- 
Christoffer Holmstedt
maintainer Applied
#1 lore raw
Quoted 10 lines · Christoffer Holmstedt
---
 src/info.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/info.c +0 -0
index e8f5dda8da94..926a63adecce 100644

src/info.c static int print_phy_handler(struct nl_msg *msg, void *arg) · line 60

Quoted 8 lines
src/info.c +1 -1
@@ -54,7 +54,7 @@ static int print_phy_handler(struct nl_msg *msg, void *arg)
 				    rem_page) {
 			channel = nla_get_u32(nl_page);
 			if (channel) {
-				printf("\tpage %d: ", page, channel);
+				printf("\tpage %d: ", page);
 				for (i = 0; i <= 31; i++) {
 					if (channel & 0x1)
 						printf("%d,", i);

Thanks, applied.

- Alex