fix(cli): add missing format args in serialpassthrough errors (#7433)
This commit is contained in:
+3
-3
@@ -1331,7 +1331,7 @@ int cliSerialPassthrough(const char **argv)
|
|||||||
// TODO:
|
// TODO:
|
||||||
// - external module (S.PORT?)
|
// - external module (S.PORT?)
|
||||||
default:
|
default:
|
||||||
cliSerialPrint("%s: invalid port # '%i'", port_n);
|
cliSerialPrint("%s: invalid port # '%i'", argv[0], port_n);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
} else if (!strcmp("gimbals", port_type)) {
|
} else if (!strcmp("gimbals", port_type)) {
|
||||||
@@ -1344,11 +1344,11 @@ int cliSerialPassthrough(const char **argv)
|
|||||||
initCB = spGimbalInit;
|
initCB = spGimbalInit;
|
||||||
deinitCB = spGimbalDeInit;
|
deinitCB = spGimbalDeInit;
|
||||||
#else
|
#else
|
||||||
cliSerialPrint("%s: serial gimbals not supported");
|
cliSerialPrint("%s: serial gimbals not supported", argv[0]);
|
||||||
return -1;
|
return -1;
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
cliSerialPrint("%s: invalid port type '%s'", port_type);
|
cliSerialPrint("%s: invalid port type '%s'", argv[0], port_type);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user