[libdvdnav-devel] [PATCH 5/7] src/ifo_print.c: Fix a couple of fprintf format strings

Andrew Clayton andrew at digital-domain.net
Fri Oct 24 16:21:33 CEST 2014


In ifoPrint_TT_SRPT() there are a couple fprintf()'s that take an
unsigned int but %d was used for the format specifier.

Signed-off-by: Andrew Clayton <andrew at digital-domain.net>
---
 src/ifo_print.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/ifo_print.c b/src/ifo_print.c
index 2f469dd..1b4acbd 100644
--- a/src/ifo_print.c
+++ b/src/ifo_print.c
@@ -812,8 +812,8 @@ static void ifoPrint_TT_SRPT(tt_srpt_t *tt_srpt) {
     if (tt_srpt->title[i].pb_ty.jlc_exists_in_prepost_cmd) printf("\t\tJump/Link/Call exists in pre/post cmd\n");
     if (tt_srpt->title[i].pb_ty.jlc_exists_in_button_cmd) printf("\t\tJump/Link/Call exists in button cmd\n");
     if (tt_srpt->title[i].pb_ty.jlc_exists_in_tt_dom) printf("\t\tJump/Link/Call exists in tt_dom cmd\n");
-    printf("\t\tTitle or time play:%d\n", tt_srpt->title[i].pb_ty.title_or_time_play);
-    printf("\t\tChapter search or play:%d\n", tt_srpt->title[i].pb_ty.chapter_search_or_play);
+    printf("\t\tTitle or time play:%u\n", tt_srpt->title[i].pb_ty.title_or_time_play);
+    printf("\t\tChapter search or play:%u\n", tt_srpt->title[i].pb_ty.chapter_search_or_play);
 
     printf("\tParental ID field: %04x\n",
            tt_srpt->title[i].parental_id);
-- 
1.9.3



More information about the libdvdnav-devel mailing list