Skip to content

Commit ce12790

Browse files
committed
Args.c: Fix warnings containing function name
Warnings that are guarded by ifdefs are for the users. Therefore they must not contain the function name. Also some of the messages had not been prefixed by "Warning".
1 parent 39d45a0 commit ce12790

File tree

1 file changed

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

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 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, "nxagentParseOptions: 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), validateString(name));
14101410

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

1418-
fprintf(stderr, "nxagentParseOptions: Warning: value [%s] of option [%s] "
1418+
fprintf(stderr, "Warning: value [%s] of option [%s] "
14191419
"out of range, clamped to [%lu].\n",
14201420
validateString(value), validateString(name), sleep_parse);
14211421
}
@@ -1424,7 +1424,7 @@ static void nxagentParseOptions(char *name, char *value)
14241424
{
14251425
sleep_parse = 0;
14261426

1427-
fprintf(stderr, "nxagentParseOptions: Warning: value [%s] of option [%s] "
1427+
fprintf(stderr, "Warning: value [%s] of option [%s] "
14281428
"out of range, clamped to [%lu].\n",
14291429
validateString(value), validateString(name), sleep_parse);
14301430
}
@@ -1463,7 +1463,7 @@ static void nxagentParseOptions(char *name, char *value)
14631463

14641464
if ((errno) && (0 == tolerance_parse))
14651465
{
1466-
fprintf(stderr, "nxagentParseOptions: 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), validateString(name));
14691469

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

1477-
fprintf(stderr, "nxagentParseOptions: Warning: value [%s] of option [%s] "
1477+
fprintf(stderr, "Warning: value [%s] of option [%s] "
14781478
"out of range, clamped to [%lu].\n",
14791479
validateString(value), validateString(name), tolerance_parse);
14801480
}
@@ -1483,7 +1483,7 @@ static void nxagentParseOptions(char *name, char *value)
14831483
{
14841484
tolerance_parse = 0;
14851485

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

0 commit comments

Comments
 (0)