summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@mines-paris.org>2018-09-22 22:28:04 +0200
committerGitHub <noreply@github.com>2018-09-22 22:28:04 +0200
commit2d2861036cfb68560e0cf21340760781ea78595d (patch)
tree5b7ed8fece7465a75a8a66c4ad6992cb03126434
parent1b9a81dff7c22ed0cb22bf1033e6dfee1292da31 (diff)
parent31a03b390a77bfbe4b0f140121d1296acb611f76 (diff)
Merge pull request #1143 from stweil/format
openjp2/jp2: Fix two format strings
-rw-r--r--src/lib/openjp2/j2k.c3
-rw-r--r--src/lib/openjp2/jp2.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/openjp2/j2k.c b/src/lib/openjp2/j2k.c
index 28c7513f..4169cd67 100644
--- a/src/lib/openjp2/j2k.c
+++ b/src/lib/openjp2/j2k.c
@@ -1925,7 +1925,8 @@ static OPJ_BOOL opj_j2k_read_soc(opj_j2k_t *p_j2k,
/* FIXME move it in a index structure included in p_j2k*/
p_j2k->cstr_index->main_head_start = opj_stream_tell(p_stream) - 2;
- opj_event_msg(p_manager, EVT_INFO, "Start to read j2k main header (%d).\n",
+ opj_event_msg(p_manager, EVT_INFO,
+ "Start to read j2k main header (%" PRId64 ").\n",
p_j2k->cstr_index->main_head_start);
/* Add the marker to the codestream index*/
diff --git a/src/lib/openjp2/jp2.c b/src/lib/openjp2/jp2.c
index c79ea731..f15f45ae 100644
--- a/src/lib/openjp2/jp2.c
+++ b/src/lib/openjp2/jp2.c
@@ -1005,7 +1005,7 @@ static OPJ_BOOL opj_jp2_check_color(opj_image_t *image, opj_jp2_color_t *color,
if (!pcol_usage[i]) {
is_sane = 0U;
opj_event_msg(p_manager, EVT_WARNING,
- "Component mapping seems wrong. Trying to correct.\n", i);
+ "Component mapping seems wrong. Trying to correct.\n");
break;
}
}