Skip to content

Commit

Permalink
core/flash: Emit a warning if Skiboot version doesn't match
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
  • Loading branch information
sammj authored and stewartsmith committed Jul 17, 2018
1 parent 3cd749c commit 714be69
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ static void __flash_dt_add_fw_version(struct dt_node *fw_version, char* data)
/* Increment past "key-" */
prop = data + version_len + 1;
dt_add_property_string(fw_version, version_str[i], prop);

if (strncmp(version_str[i], "skiboot", strlen("skiboot")) == 0)
if (strncmp(prop, version, strlen(version)) != 0)
prlog(PR_WARNING, "WARNING! Skiboot version does not match VERSION partition!\n");
}
}

Expand Down

0 comments on commit 714be69

Please sign in to comment.