use fs_type "emmc" instead of "block" for consistency (do not merge)
Change-Id: Iab60665d9c6daef7893896a64b7f319120a5f8ee
This commit is contained in:
+2
-2
@@ -32,7 +32,7 @@ int get_bootloader_message(struct bootloader_message *out) {
|
|||||||
Volume* v = volume_for_path("/misc");
|
Volume* v = volume_for_path("/misc");
|
||||||
if (strcmp(v->fs_type, "mtd") == 0) {
|
if (strcmp(v->fs_type, "mtd") == 0) {
|
||||||
return get_bootloader_message_mtd(out, v);
|
return get_bootloader_message_mtd(out, v);
|
||||||
} else if (strcmp(v->fs_type, "block") == 0) {
|
} else if (strcmp(v->fs_type, "emmc") == 0) {
|
||||||
return get_bootloader_message_block(out, v);
|
return get_bootloader_message_block(out, v);
|
||||||
}
|
}
|
||||||
LOGE("unknown misc partition fs_type \"%s\"\n", v->fs_type);
|
LOGE("unknown misc partition fs_type \"%s\"\n", v->fs_type);
|
||||||
@@ -43,7 +43,7 @@ int set_bootloader_message(const struct bootloader_message *in) {
|
|||||||
Volume* v = volume_for_path("/misc");
|
Volume* v = volume_for_path("/misc");
|
||||||
if (strcmp(v->fs_type, "mtd") == 0) {
|
if (strcmp(v->fs_type, "mtd") == 0) {
|
||||||
return set_bootloader_message_mtd(in, v);
|
return set_bootloader_message_mtd(in, v);
|
||||||
} else if (strcmp(v->fs_type, "block") == 0) {
|
} else if (strcmp(v->fs_type, "emmc") == 0) {
|
||||||
return set_bootloader_message_block(in, v);
|
return set_bootloader_message_block(in, v);
|
||||||
}
|
}
|
||||||
LOGE("unknown misc partition fs_type \"%s\"\n", v->fs_type);
|
LOGE("unknown misc partition fs_type \"%s\"\n", v->fs_type);
|
||||||
|
|||||||
Reference in New Issue
Block a user