pnor_partition{,_table}: Conform to logging requirements
See the Rules section of README.md for justification.
Change-Id: Ib5ac059b498abc152269e926fc750cb83cd75d6c
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/pnor_partition_table.cpp b/pnor_partition_table.cpp
index 983cddd..930b4a9 100644
--- a/pnor_partition_table.cpp
+++ b/pnor_partition_table.cpp
@@ -127,7 +127,7 @@
}
}
- MSG_ERR("Partition corresponding to offset %zu not found", offset);
+ MSG_ERR("Partition corresponding to offset 0x%zx not found", offset);
elog<InternalFailure>();
static pnor_partition p{};
@@ -146,9 +146,7 @@
}
}
- MSG_ERR("Partition %s not found", name.c_str());
- log<level::ERR>("Table::partition partition not found ",
- entry("PARTITION_NAME=%s", name.c_str()));
+ MSG_ERR("Partition '%s' not found", name.c_str());
elog<InternalFailure>();
static pnor_partition p{};
return p;