add newlines in error messages

dev
nobled 14 years ago
parent 3f9f73f33e
commit 14d222f612
  1. 8
      clients/window.c

@ -373,11 +373,11 @@ display_create_shm_surface(struct display *display,
data->length = stride * rectangle->height; data->length = stride * rectangle->height;
fd = mkstemp(filename); fd = mkstemp(filename);
if (fd < 0) { if (fd < 0) {
fprintf(stderr, "open %s failed: %m", filename); fprintf(stderr, "open %s failed: %m\n", filename);
return NULL; return NULL;
} }
if (ftruncate(fd, data->length) < 0) { if (ftruncate(fd, data->length) < 0) {
fprintf(stderr, "ftruncate failed: %m"); fprintf(stderr, "ftruncate failed: %m\n");
close(fd); close(fd);
return NULL; return NULL;
} }
@ -387,7 +387,7 @@ display_create_shm_surface(struct display *display,
unlink(filename); unlink(filename);
if (data->map == MAP_FAILED) { if (data->map == MAP_FAILED) {
fprintf(stderr, "mmap failed: %m"); fprintf(stderr, "mmap failed: %m\n");
close(fd); close(fd);
return NULL; return NULL;
} }
@ -1592,7 +1592,7 @@ init_drm(struct display *d)
} }
if (drmGetMagic(fd, &magic)) { if (drmGetMagic(fd, &magic)) {
fprintf(stderr, "DRI2: failed to get drm magic"); fprintf(stderr, "DRI2: failed to get drm magic\n");
return -1; return -1;
} }

Loading…
Cancel
Save