Commit 30e20acc authored by ji.luo's avatar ji.luo Committed by Jason Liu
Browse files

MA-10338-4 Correct 'fastboot getvar current-slot' command



Remove the underscore prefix of current slot.

Change-Id: I07a0513dfcfbf395087d57e3680c8d662ec827aa
Signed-off-by: default avatarji.luo <ji.luo@nxp.com>
parent 3ba4ee61
......@@ -125,7 +125,7 @@ int get_slotvar_avb(AvbABOps *ab_ops, char *cmd, char *buffer, size_t size) {
if (!strcmp_l1("current-slot", cmd)) {
int curr = get_curr_slot(&ab_data);
if (curr >= 0 && curr < SLOT_NUM)
strlcpy(buffer, slot_suffix[curr], size);
strlcpy(buffer, slot_suffix[curr] + sizeof(unsigned char), size);
else {
strlcpy(buffer, "no bootable slot", size);
return -1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment