make style

This commit is contained in:
Philippe Teuwen 2019-03-15 09:18:07 +01:00
parent 6436f88fb2
commit 2d2b128754
2 changed files with 107 additions and 107 deletions

View file

@ -664,7 +664,7 @@ int CmdSmartUpgrade(const char *Cmd) {
// load sha512 file
f = fopen(sha512filename, "rb");
if ( !f ){
if (!f) {
PrintAndLogEx(FAILED, "SHA-512 file not found or locked.");
return 1;
}
@ -706,7 +706,7 @@ int CmdSmartUpgrade(const char *Cmd) {
}
if (memcmp(hash1, hash2, 64)) {
PrintAndLogEx(FAILED, "Couldn't verify integrity of firmware file " _RED_("(wrong SHA-512 hash)") );
PrintAndLogEx(FAILED, "Couldn't verify integrity of firmware file " _RED_("(wrong SHA-512 hash)"));
return 1;
}
@ -751,10 +751,10 @@ int CmdSmartUpgrade(const char *Cmd) {
return 1;
}
if ((resp.arg[0] & 0xFF)) {
PrintAndLogEx(SUCCESS, "Sim module firmware upgrade " _GREEN_("successful") );
PrintAndLogEx(SUCCESS, "\n run " _YELLOW_("`hw status`") " to validate the fw version " );
PrintAndLogEx(SUCCESS, "Sim module firmware upgrade " _GREEN_("successful"));
PrintAndLogEx(SUCCESS, "\n run " _YELLOW_("`hw status`") " to validate the fw version ");
} else {
PrintAndLogEx(FAILED, "Sim module firmware upgrade " _RED_("failed") );
PrintAndLogEx(FAILED, "Sim module firmware upgrade " _RED_("failed"));
}
return 0;
}