aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-04-23 20:09:25 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-05-10 16:24:03 +0200
commit453edbd21032ed51bba08e7368ed3ee5c45430d3 (patch)
tree2d191a6184884bcb85316cd9074bfe54473b592c /nx-X11/programs/Xserver/hw/nxagent
parent0086b8c2469fbf19a337f38f5431bd77da045332 (diff)
downloadnx-libs-453edbd21032ed51bba08e7368ed3ee5c45430d3.tar.gz
nx-libs-453edbd21032ed51bba08e7368ed3ee5c45430d3.tar.bz2
nx-libs-453edbd21032ed51bba08e7368ed3ee5c45430d3.zip
Font.c: use __func__ in TEST prints
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Font.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Font.c b/nx-X11/programs/Xserver/hw/nxagent/Font.c
index 11496938c..8de50fdc3 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Font.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Font.c
@@ -703,7 +703,7 @@ Bool nxagentUnrealizeFont(ScreenPtr pScreen, FontPtr pFont)
int nxagentDestroyNewFontResourceType(void * p, XID id)
{
#ifdef TEST
- fprintf(stderr, "nxagentDestroyNewFontResourceType: Destroying mirror id [%ld] for font at [%p].\n",
+ fprintf(stderr, "%s: Destroying mirror id [%ld] for font at [%p].\n", __func__,
nxagentFontPriv((FontPtr) p) -> mirrorID, (void *) p);
#endif
@@ -1410,14 +1410,14 @@ static Bool nxagentGetFontServerPath(char * fontServerPath, int size)
snprintf(fontServerPath, min(size, len + 1), "%s", path + 1);
#ifdef TEST
- fprintf(stderr, "nxagentGetFontServerPath: Got path [%s].\n",
+ fprintf(stderr, "%s: Got path [%s].\n", __func__,
fontServerPath);
#endif
}
else
{
#ifdef TEST
- fprintf(stderr, "nxagentGetFontServerPath: WARNING! Font server tunneling not enabled.\n");
+ fprintf(stderr, "%s: WARNING! Font server tunneling not enabled.\n", __func__);
#endif
return False;
@@ -1426,7 +1426,7 @@ static Bool nxagentGetFontServerPath(char * fontServerPath, int size)
else
{
#ifdef TEST
- fprintf(stderr, "nxagentGetFontServerPath: WARNING! Failed to get path for font server tunneling.\n");
+ fprintf(stderr, "%s: WARNING! Failed to get path for font server tunneling.\n", __func__);
#endif
return False;
@@ -1478,7 +1478,7 @@ void nxagentVerifyDefaultFontPath(void)
static char *fontPath;
#ifdef TEST
- fprintf(stderr, "nxagentVerifyDefaultFontPath: Going to search for one or more valid font paths.\n");
+ fprintf(stderr, "%s: Going to search for one or more valid font paths.\n", __func__);
#endif
/*
@@ -1488,8 +1488,9 @@ void nxagentVerifyDefaultFontPath(void)
if ((fontPath = strdup(defaultFontPath)) == NULL)
{
#ifdef WARNING
- fprintf(stderr, "nxagentVerifyDefaultFontPath: WARNING! Unable to allocate memory for a new font path. "
- "Using the default font path [%s].\n", validateString(defaultFontPath));
+ fprintf(stderr, "%s: WARNING! Unable to allocate memory for a new font path. "
+ "Using the default font path [%s].\n", __func__,
+ validateString(defaultFontPath));
#endif
return;
@@ -1529,13 +1530,12 @@ void nxagentVerifyDefaultFontPath(void)
}
}
- if (*fontPath == '\0')
+ if (*fontPath == '\0')
{
#ifdef WARNING
- fprintf(stderr, "nxagentVerifyDefaultFontPath: WARNING! Can't find a valid font directory.\n");
-
- fprintf(stderr, "nxagentVerifyDefaultFontPath: WARNING! Using font path [%s].\n",
- validateString(defaultFontPath));
+ fprintf(stderr, "%s: WARNING! Can't find a valid font directory.\n", __func__);
+ fprintf(stderr, "%s: WARNING! Using font path [%s].\n", __func__,
+ validateString(defaultFontPath));
#endif
}
else
@@ -1543,10 +1543,10 @@ void nxagentVerifyDefaultFontPath(void)
/* do _not_ free defaultFontPath here - it's either set at compile time or
part of argv */
defaultFontPath = fontPath;
-
+
#ifdef TEST
- fprintf(stderr, "nxagentVerifyDefaultFontPath: Using font path [%s].\n",
- validateString(defaultFontPath));
+ fprintf(stderr, "%s: Using font path [%s].\n", __func__,
+ validateString(defaultFontPath));
#endif
}