summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmd-show-messages.c4
-rw-r--r--utf8.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/cmd-show-messages.c b/cmd-show-messages.c
index bc9fc0db..e0b72b9a 100644
--- a/cmd-show-messages.c
+++ b/cmd-show-messages.c
@@ -81,8 +81,8 @@ cmd_show_messages_jobs(struct cmdq_item *item, int blank)
cmdq_print(item, "%s", "");
blank = 0;
}
- cmdq_print(item, "Job %u: %s [fd=%d, pid=%d, status=%d]",
- n, job->cmd, job->fd, job->pid, job->status);
+ cmdq_print(item, "Job %u: %s [fd=%d, pid=%ld, status=%d]",
+ n, job->cmd, job->fd, (long)job->pid, job->status);
n++;
}
return (n != 0);
diff --git a/utf8.c b/utf8.c
index ea8c99a2..ac85863a 100644
--- a/utf8.c
+++ b/utf8.c
@@ -112,7 +112,7 @@ utf8_width(wchar_t wc)
width = wcwidth(wc);
if (width < 0 || width > 0xff) {
- log_debug("Unicode %04x, wcwidth() %d", wc, width);
+ log_debug("Unicode %04lx, wcwidth() %d", (long)wc, width);
return (-1);
}
return (width);