From 56f3e9c817a8074ee8928e6a4b62320ffabcdb8b Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 4 Jun 2012 20:16:57 +0200 Subject: [PATCH] device: show a bit more info if the device is not present --- device.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/device.c b/device.c index b6f4725..9dcd29a 100644 --- 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); -- 2.25.1