Skip to content

Commit

Permalink
Args.c: do not use [] for warnings
Browse files Browse the repository at this point in the history
Within Args.c values in messages are not enclosed by [] but ''.
The [] format is only used for debugging/testing messages.
  • Loading branch information
uli42 committed Nov 19, 2017
1 parent b45e7ab commit 561c93e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions nx-X11/programs/Xserver/hw/nxagent/Args.c
Original file line number Diff line number Diff line change
Expand Up @@ -1404,7 +1404,7 @@ static void nxagentParseOptions(char *name, char *value)

if ((errno) && (0 == sleep_parse))
{
fprintf(stderr, "Warning: Unable to convert value [%s] of option [%s]. "
fprintf(stderr, "Warning: Unable to convert value '%s' of option '%s'. "
"Ignoring option.\n",
validateString(value), name);

Expand All @@ -1415,17 +1415,17 @@ static void nxagentParseOptions(char *name, char *value)
{
sleep_parse = UINT_MAX;

fprintf(stderr, "Warning: value [%s] of option [%s] "
"out of range, clamped to [%lu].\n",
fprintf(stderr, "Warning: value '%s' of option '%s' "
"out of range, clamped to '%lu'.\n",
validateString(value), name, sleep_parse);
}

if (0 > sleep_parse)
{
sleep_parse = 0;

fprintf(stderr, "Warning: value [%s] of option [%s] "
"out of range, clamped to [%lu].\n",
fprintf(stderr, "Warning: value '%s' of option '%s' "
"out of range, clamped to '%lu'.\n",
validateString(value), name, sleep_parse);
}

Expand Down Expand Up @@ -1463,7 +1463,7 @@ static void nxagentParseOptions(char *name, char *value)

if ((errno) && (0 == tolerance_parse))
{
fprintf(stderr, "Warning: Unable to convert value [%s] of option [%s]. "
fprintf(stderr, "Warning: Unable to convert value '%s' of option '%s'. "
"Ignoring option.\n",
validateString(value), name);

Expand All @@ -1474,17 +1474,17 @@ static void nxagentParseOptions(char *name, char *value)
{
tolerance_parse = UINT_MAX;

fprintf(stderr, "Warning: value [%s] of option [%s] "
"out of range, clamped to [%lu].\n",
fprintf(stderr, "Warning: value '%s' of option '%s' "
"out of range, clamped to '%lu'.\n",
validateString(value), name, tolerance_parse);
}

if (0 > tolerance_parse)
{
tolerance_parse = 0;

fprintf(stderr, "Warning: value [%s] of option [%s] "
"out of range, clamped to [%lu].\n",
fprintf(stderr, "Warning: value '%s' of option '%s' "
"out of range, clamped to '%lu'.\n",
validateString(value), name, tolerance_parse);
}

Expand Down

0 comments on commit 561c93e

Please sign in to comment.