Skip to content

Commit

Permalink
fix using logger function before initialization
Browse files Browse the repository at this point in the history
Signed-off-by: Niklas Eiling <[email protected]>
  • Loading branch information
n-eiling committed Jul 17, 2023
1 parent fbf7dad commit bf3a15e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpu/server-exe.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ int main(int argc, char** argv)
} else if (argc == 2) {
uint64_t vers;
if (sscanf(argv[1], "%lu", &vers) != 1) {
LOGE(LOG_ERROR, "version string could not be converted to number");
LOGE(LOG_INFO, "usage: %s [unique rpc version]", argv[0]);
printf("version string could not be converted to number\n");
printf("usage: %s [unique rpc version]\n", argv[0]);
return 1;
}
cricket_main(RPC_CD_PROG, vers);
} else {
LOGE(LOG_INFO, "usage: %s", argv[0]);
printf("usage: %s\n", argv[0]);
}
return 0;
}

0 comments on commit bf3a15e

Please sign in to comment.