mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
fsutils/mkgpt: dump partition when verify failed
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
7277a48482
commit
963d0680bd
1 changed files with 7 additions and 0 deletions
|
|
@ -30,6 +30,7 @@
|
|||
#include <stdint.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <sys/random.h>
|
||||
#include <sys/stat.h>
|
||||
|
|
@ -474,6 +475,12 @@ int main(int argc, FAR char **argv)
|
|||
}
|
||||
|
||||
ret = verify_gpt_pratition(ptbl);
|
||||
if (ret < 0)
|
||||
{
|
||||
lib_dumpbuffer("Dump GPT partition:", (FAR uint8_t *)ptbl,
|
||||
sizeof(*ptbl));
|
||||
}
|
||||
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue