path: root/discover/parser.c
diff options
authorJeremy Kerr <>2013-03-11 17:08:57 +0800
committerJeremy Kerr <>2013-04-16 12:57:15 +0800
commit92806cf6bc15f680f75879288df12ea9a87e4608 (patch)
tree4a6650d8881dda3c6ee321d1e3350edc646c4baf /discover/parser.c
parent7b396a45d43cc464539cc25799ddda3a27339bd8 (diff)
discover: Separate temporary and permanent device data
At present, we keep both permanent (eg links/n_links) and temporary (event) data in struct discover_context. This change makes discover_context a temporary structure, just used during actual device discovery. Once discovery is complete, the permanent data (discover_device) is "committed" to the device handler. Signed-off-by: Jeremy Kerr <>
Diffstat (limited to 'discover/parser.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/parser.c b/discover/parser.c
index d0b0477..5f4e514 100644
--- a/discover/parser.c
+++ b/discover/parser.c
@@ -26,7 +26,7 @@ void iterate_parsers(struct discover_context *ctx)
int i;
unsigned int count = 0;
- pb_log("trying parsers for %s\n", ctx->device_path);
+ pb_log("trying parsers for %s\n", ctx->device->device->id);
for (i = 0; parsers[i]; i++) {
pb_log("\ttrying parser '%s'\n", parsers[i]->name);
OpenPOWER on IntegriCloud