projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cabaeb
)
device: show a bit more info if the device is not present
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 4 Jun 2012 18:16:57 +0000
(20:16 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 4 Jun 2012 18:16:57 +0000
(20:16 +0200)
device.c
patch
|
blob
|
history
diff --git
a/device.c
b/device.c
index b6f4725e38e4e1f9dcd686b02b21877a9fc3053d..9dcd29ac6505b931b1d900c9b9912a53a39228a9 100644
(file)
--- a/
device.c
+++ b/
device.c
@@
-704,10
+704,13
@@
device_dump_status(struct blob_buf *b, struct device *dev)
return;
}
+ blobmsg_add_u8(b, "external", dev->external);
+ blobmsg_add_u8(b, "present", dev->present);
+ blobmsg_add_string(b, "type", dev->type->name);
+
if (!dev->present)
return;
- blobmsg_add_string(b, "type", dev->type->name);
blobmsg_add_u8(b, "up", !!dev->active);
if (dev->type->dump_info)
dev->type->dump_info(dev, b);