summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2019-05-14 23:06:39 -0400
committerSolomon Peachy <pizza@shaftnet.org>2019-05-14 23:06:39 -0400
commita2e1b4255826d116cd744029f3e7693793e73352 (patch)
tree831eaaaf9a9669187a2c690e474bcc958a4d3db2
parentb725f0816cf8f1d83c2a0275bc8b960a822d1cee (diff)
downloadselphy_print-a2e1b4255826d116cd744029f3e7693793e73352.tar.gz
selphy_print-a2e1b4255826d116cd744029f3e7693793e73352.tar.bz2
selphy_print-a2e1b4255826d116cd744029f3e7693793e73352.zip
misc: Fix several cppcheck format string warnings.
-rw-r--r--backend_dnpds40.c2
-rw-r--r--backend_kodak6800.c2
-rw-r--r--backend_sinfonia.c2
-rw-r--r--backend_sonyupd.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/backend_dnpds40.c b/backend_dnpds40.c
index d2263f5..7cb109c 100644
--- a/backend_dnpds40.c
+++ b/backend_dnpds40.c
@@ -1996,7 +1996,7 @@ top:
/* Program in the multicut setting, if one exists */
if (multicut) {
- snprintf(buf, sizeof(buf), "%08u", multicut);
+ snprintf(buf, sizeof(buf), "%08d", multicut);
dnpds40_build_cmd(&cmd, "IMAGE", "MULTICUT", 8);
if ((ret = dnpds40_do_cmd(ctx, &cmd, (uint8_t*)buf, 8)))
return CUPS_BACKEND_FAILED;
diff --git a/backend_kodak6800.c b/backend_kodak6800.c
index ebd7293..a76c987 100644
--- a/backend_kodak6800.c
+++ b/backend_kodak6800.c
@@ -348,7 +348,7 @@ static void kodak68x0_dump_status(struct kodak6800_ctx *ctx, struct kodak68x0_st
}
if (max) {
- INFO("\t Remaining : %d\n", max - be32_to_cpu(status->media));
+ INFO("\t Remaining : %u\n", max - be32_to_cpu(status->media));
} else {
INFO("\t Remaining : Unknown\n");
}
diff --git a/backend_sinfonia.c b/backend_sinfonia.c
index 1c4e598..b605f22 100644
--- a/backend_sinfonia.c
+++ b/backend_sinfonia.c
@@ -95,7 +95,7 @@ int sinfonia_read_parse(int data_fd, uint32_t model,
do {
ret = read(data_fd, ptr, remain);
if (ret < 0) {
- ERROR("Read failed (%d/%d/%d)\n",
+ ERROR("Read failed (%d/%u/%d)\n",
ret, remain, job->datalen);
perror("ERROR: Read failed");
free(job->databuf);
diff --git a/backend_sonyupd.c b/backend_sonyupd.c
index 230a5d8..f23594b 100644
--- a/backend_sonyupd.c
+++ b/backend_sonyupd.c
@@ -405,7 +405,7 @@ static int upd_read_parse(void *vctx, const void **vjob, int data_fd, int copies
/* Sanity check job parameters */
if (job->imglen != (uint32_t)(job->rows * job->cols * ctx->native_bpp))
{
- ERROR("Job data length mismatch (%u vs %u)!\n",
+ ERROR("Job data length mismatch (%u vs %d)!\n",
job->imglen, job->rows * job->cols * ctx->native_bpp);
return CUPS_BACKEND_CANCEL;
}