Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xserver
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alexander Volkov
xserver
Commits
14af5037
Commit
14af5037
authored
Apr 03, 2006
by
Adam Jackson
💣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #2142: Make font path logging more readable. (Eduard Fuchs)
parent
373f9f92
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
2 deletions
+36
-2
ChangeLog
ChangeLog
+5
-0
hw/xfree86/common/xf86Config.c
hw/xfree86/common/xf86Config.c
+31
-2
No files found.
ChangeLog
View file @
14af5037
2006-04-03 Adam Jackson <ajax@freedesktop.org>
* hw/xfree86/common/xf86Config.c:
Bug #2142: Make font path logging more readable. (Eduard Fuchs)
2006-04-03 Adam Jackson <ajax@freedesktop.org>
* Xprint/Makefile.am:
...
...
hw/xfree86/common/xf86Config.c
View file @
14af5037
/* $XdotOrg: xserver/xorg/hw/xfree86/common/xf86Config.c,v 1.2
2.8.2 2006/02/28 23:55:0
3 krh Exp $ */
/* $XdotOrg: xserver/xorg/hw/xfree86/common/xf86Config.c,v 1.2
3 2006/03/12 00:11:3
3 krh Exp $ */
/* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86Config.c,v 3.276 2003/10/08 14:58:26 dawes Exp $ */
...
...
@@ -666,7 +666,36 @@ configFiles(XF86ConfFilesPtr fileconf)
if
(
!
*
defaultFontPath
)
FatalError
(
"No valid FontPath could be found."
);
xf86Msg
(
pathFrom
,
"FontPath set to
\"
%s
\"\n
"
,
defaultFontPath
);
/* make fontpath more readable in the logfiles */
int
countDirs
=
1
;
char
*
temp_path
=
defaultFontPath
;
while
((
temp_path
=
index
(
temp_path
,
','
))
!=
NULL
)
{
countDirs
++
;
temp_path
++
;
}
char
*
log_buf
=
xnfalloc
(
strlen
(
defaultFontPath
)
+
(
2
*
countDirs
)
+
1
);
if
(
!
log_buf
)
/* fallback to old method */
xf86Msg
(
pathFrom
,
"FontPath set to
\"
%s
\"\n
"
,
defaultFontPath
);
else
{
char
*
start
,
*
end
;
int
size
;
temp_path
=
log_buf
;
start
=
defaultFontPath
;
while
((
end
=
index
(
start
,
','
))
!=
NULL
)
{
size
=
(
end
-
start
)
+
1
;
*
(
temp_path
++
)
=
'\t'
;
strncpy
(
temp_path
,
start
,
size
);
temp_path
+=
size
;
*
(
temp_path
++
)
=
'\n'
;
start
+=
size
;
}
/* copy last entry */
*
(
temp_path
++
)
=
'\t'
;
strcpy
(
temp_path
,
start
);
xf86Msg
(
pathFrom
,
"FontPath set to:
\n
%s
\n
"
,
log_buf
);
xfree
(
log_buf
);
}
/* RgbPath */
...
...
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