Skip to contentSkip to conversation

interface: fix interface type info

PATCH Applied Varka Bhadram 2 participants 2 messages Jun 4, 2015 IEEE 802.15.4

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 interface: fix interface type info

---
 src/interface.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
src/interface.c +3 -3
index e501763..647247b 100644
@@ -16,7 +16,7 @@
 
 SECTION(interface);
 
-static char modebuf[100];
+static char iftypebuf[100];
 
 const char *iftype_name(enum nl802154_iftype iftype)
 {
@@ -28,8 +28,8 @@ const char *iftype_name(enum nl802154_iftype iftype)
 	case NL802154_IFTYPE_COORD:
 		return "coordinator";
 	default:
-		sprintf(modebuf, "Unknown mode (%d)", iftype);
-		return modebuf;
+		sprintf(iftypebuf, "Invalid iftype (%d)", iftype);
+		return iftypebuf;
 	}
 }
 
Signature · 1 line
1.7.9.5