projects
/
platform
/
upstream
/
kbd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39a6dfb
)
[SYSTEM] Apply patch from SUSE.
author
Alexey Gladkov
<legion@altlinux.org>
Sun, 28 Jan 2007 20:05:34 +0000
(23:05 +0300)
committer
Alexey Gladkov
<legion@altlinux.org>
Sun, 28 Jan 2007 20:05:34 +0000
(23:05 +0300)
Apply piofont_debug.diff patch from SUSE distribution.
Patch add debug output.
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
src/kdfontop.c
patch
|
blob
|
history
diff --git
a/src/kdfontop.c
b/src/kdfontop.c
index
d64f21f
..
22ec607
100644
(file)
--- a/
src/kdfontop.c
+++ b/
src/kdfontop.c
@@
-268,6
+268,7
@@
putfont(int fd, char *buf, int count, int width, int height) {
if (i == 0)
return 0;
if (errno != ENOSYS && errno != EINVAL) {
+ fprintf(stderr, "%s: putfont: %d,%dx%d:failed: %d\n", progname, count, width, height, i);
perror("putfont: PIO_FONTX");
return -1;
}
@@
-276,6
+277,7
@@
putfont(int fd, char *buf, int count, int width, int height) {
/* This will load precisely 256 chars, independent of count */
i = ioctl(fd, PIO_FONT, buf);
if (i) {
+ fprintf(stderr, "%s: putfont: %d,%dx%d: failed: %d\n", progname, count, width, height, i);
perror("putfont: PIO_FONT");
return -1;
}