summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher N. Hesse <raymanfx@gmail.com>2018-01-29 22:47:52 +0100
committerChristopher N. Hesse <raymanfx@gmail.com>2018-02-05 14:03:41 +0000
commit8f74f0a7e9839d4f6f499aecdcc6c042ca4671a0 (patch)
tree6550dccce8aeee6f3f0a440ea661673c4e05eb08
parentb62bc50c3ee6697a74f072ed12b7d1a590abe25c (diff)
downloadandroid_hardware_samsung-8f74f0a7e9839d4f6f499aecdcc6c042ca4671a0.tar.gz
android_hardware_samsung-8f74f0a7e9839d4f6f499aecdcc6c042ca4671a0.tar.bz2
android_hardware_samsung-8f74f0a7e9839d4f6f499aecdcc6c042ca4671a0.zip
dtbhtool: Print better warnings for PLATFORM/SUBTYPE mismatch
Change-Id: I486239d47255d5a5347e7b8ac7348afb8bc5bddb
-rw-r--r--dtbhtool/dtbimg.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/dtbhtool/dtbimg.c b/dtbhtool/dtbimg.c
index a85c901..744222f 100644
--- a/dtbhtool/dtbimg.c
+++ b/dtbhtool/dtbimg.c
@@ -170,14 +170,16 @@ void *load_dtbh_block(const char *dtb_path, unsigned pagesize, unsigned *_sz)
prop_platform = fdt_getprop(dtb, offset, "model_info-platform", &len);
if (strcmp((char *)&prop_platform[0], DTBH_PLATFORM)) {
- warnx("model_info-platform of %s is invalid, skipping", fname);
+ warnx("model_info-platform of %s is invalid, skipping (expected %s but got %s)",
+ fname, DTBH_PLATFORM, (char *)&prop_platform[0]);
free(dtb);
continue;
}
prop_subtype = fdt_getprop(dtb, offset, "model_info-subtype", &len);
if (strcmp((char *)&prop_subtype[0], DTBH_SUBTYPE)) {
- warnx("model_info-subtype of %s is invalid, skipping", fname);
+ warnx("model_info-subtype of %s is invalid, skipping (expected %s but got %s)",
+ fname, DTBH_SUBTYPE, (char *)&prop_subtype[0]);
free(dtb);
continue;
}