diff options
author | Adam Jackson <ajax@redhat.com> | 2008-02-01 15:36:11 +1100 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-02-14 07:52:02 +1100 |
commit | f3b3b37ec6197f8884417fbc26630d3a28f2e319 (patch) | |
tree | 345a9462eea606d927f3007992c6830b0000e4bb /Xext/xf86bigfont.c | |
parent | b740b865e4c156a40adc6b63fcf215156fc9151a (diff) |
Use strerror instead of errno values in user strings.
Diffstat (limited to 'Xext/xf86bigfont.c')
-rw-r--r-- | Xext/xf86bigfont.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Xext/xf86bigfont.c b/Xext/xf86bigfont.c index 779f3b940..d5c5704de 100644 --- a/Xext/xf86bigfont.c +++ b/Xext/xf86bigfont.c @@ -236,15 +236,15 @@ shmalloc( size = (size + pagesize-1) & -pagesize; shmid = shmget(IPC_PRIVATE, size, S_IWUSR | S_IRUSR | S_IRGRP | S_IROTH); if (shmid == -1) { - ErrorF(XF86BIGFONTNAME " extension: shmget() failed, size = %u, errno = %d\n", - size, errno); + ErrorF(XF86BIGFONTNAME " extension: shmget() failed, size = %u, %s\n", + size, strerror(errno)); xfree(pDesc); return (ShmDescPtr) NULL; } if ((addr = shmat(shmid, 0, 0)) == (char *)-1) { - ErrorF(XF86BIGFONTNAME " extension: shmat() failed, size = %u, errno = %d\n", - size, errno); + ErrorF(XF86BIGFONTNAME " extension: shmat() failed, size = %u, %s\n", + size, strerror(errno)); shmctl(shmid, IPC_RMID, (void *) 0); xfree(pDesc); return (ShmDescPtr) NULL; |