Skip to content

Commit 561c93e

Browse files
committed
Args.c: do not use [] for warnings
Within Args.c values in messages are not enclosed by [] but ''. The [] format is only used for debugging/testing messages.
1 parent b45e7ab commit 561c93e

File tree

1 file changed

+10
-10
lines changed
  • nx-X11/programs/Xserver/hw/nxagent

1 file changed

+10
-10
lines changed

nx-X11/programs/Xserver/hw/nxagent/Args.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,7 +1404,7 @@ static void nxagentParseOptions(char *name, char *value)
14041404

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

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

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

14231423
if (0 > sleep_parse)
14241424
{
14251425
sleep_parse = 0;
14261426

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

@@ -1463,7 +1463,7 @@ static void nxagentParseOptions(char *name, char *value)
14631463

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

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

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

14821482
if (0 > tolerance_parse)
14831483
{
14841484
tolerance_parse = 0;
14851485

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

0 commit comments

Comments
 (0)