[thin_dump] Fix regression where mappings for all devices were being listed in every device.

This commit is contained in:
Joe Thornber 2013-06-28 13:43:28 +01:00
parent ceba0f00ec
commit fe8e1592a9

View File

@ -51,7 +51,7 @@ namespace {
return false; return false;
} }
return (loc.is_sub_root() && loc.key) ? (*loc.key == dev_id_) : true; return loc.is_sub_root() ? (loc.path[0] == dev_id_) : true;
} }
bool visit_internal_leaf(node_location const &loc, bool visit_internal_leaf(node_location const &loc,