Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
453edbd2
Commit
453edbd2
authored
Apr 23, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
May 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Font.c: use __func__ in TEST prints
parent
0086b8c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
Font.c
nx-X11/programs/Xserver/hw/nxagent/Font.c
+15
-15
No files found.
nx-X11/programs/Xserver/hw/nxagent/Font.c
View file @
453edbd2
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment