Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
JEnoch committed Jun 5, 2024
1 parent be6bdfa commit 948804e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions rmw_zenoh_cpp/src/zenohd/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ void quit(int sig)
#endif

// "RUST_LOG" environment variable used to configure Zenoh logging
static const char* LOG_ENV_VAR = "RUST_LOG";
static const char * LOG_ENV_VAR = "RUST_LOG";
// Values for this environment variables depending the verbosity level
static const int LOG_LEVEL_MAX = 3;
static const char* LOG_LEVELS[LOG_LEVEL_MAX+1] = {
static const char * LOG_LEVELS[LOG_LEVEL_MAX+1] = {
// 0: only error logs
"zenoh=error",
// 1: add warning and info logs
Expand All @@ -191,7 +191,8 @@ static const struct option LONG_OPTS[] = {
{nullptr, 0, nullptr, 0}
};

void print_usage(const char* progname) {
void print_usage(const char* progname)
{
printf("Usage: %s [-h|--help] [-v]\n", progname);
printf("Options:\n");
printf(" -h, --help Show this help\n");
Expand Down

0 comments on commit 948804e

Please sign in to comment.