ubox: Replace strerror(errno) with %m format.
[project/ubox.git] / log / logd.c
index 9931723f6974fd35c156bc94345df0f858537f2b..18788fed9a3cfa342e29cefc6498aeebbba337ef 100644 (file)
@@ -119,7 +119,7 @@ read_log(struct ubus_context *ctx, struct ubus_object *obj,
        l = log_list(count, NULL);
        if (stream) {
                if (pipe(fds) == -1) {
-                       fprintf(stderr, "logd: failed to create pipe: %s\n", strerror(errno));
+                       fprintf(stderr, "logd: failed to create pipe: %m\n");
                        return -1;
                }