From 67d2335130295f626cc87468fc069ecdedf2d92a Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 17 Mar 2017 14:51:41 +0000 Subject: [PATCH] Fix a couple of argument types. --- cmd-show-messages.c | 4 ++-- utf8.c | 2 +- 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);