Commit fb082136 authored by Max Kellermann's avatar Max Kellermann

input_file: use GLib for logging

parent 8f3d9622
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
*/ */
#include "input_file.h" #include "input_file.h"
#include "log.h" #include "gcc.h"
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
...@@ -80,7 +80,7 @@ input_file_read(struct input_stream *is, void *ptr, size_t size) ...@@ -80,7 +80,7 @@ input_file_read(struct input_stream *is, void *ptr, size_t size)
nbytes = read(fd, ptr, size); nbytes = read(fd, ptr, size);
if (nbytes < 0) { if (nbytes < 0) {
is->error = errno; is->error = errno;
DEBUG("input_file_read: error reading: %s\n", g_debug("input_file_read: error reading: %s\n",
strerror(is->error)); strerror(is->error));
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment