From a11a1bbfc9642bb253592a1da5f3df5a10a3b27d Mon Sep 17 00:00:00 2001 From: nick black Date: Tue, 5 Oct 2021 04:59:20 -0400 Subject: [PATCH] logging: convert some %jxen to PRIx64 --- src/lib/fd.c | 2 +- src/lib/notcurses.c | 2 +- src/lib/reel.c | 2 +- src/lib/render.c | 2 +- src/lib/visual.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/fd.c b/src/lib/fd.c index 357de96ef..7d45ccca1 100644 --- a/src/lib/fd.c +++ b/src/lib/fd.c @@ -91,7 +91,7 @@ ncfdplane_create_internal(ncplane* n, const ncfdplane_options* opts, int fd, ncfdplane_callback cbfxn, ncfdplane_done_cb donecbfxn, bool thread){ if(opts->flags > 0){ - logwarn("Provided unsupported flags %016jx\n", (uintmax_t)opts->flags); + logwarn("Provided unsupported flags %016" PRIx64 "\n", opts->flags); } ncfdplane* ret = malloc(sizeof(*ret)); if(ret == NULL){ diff --git a/src/lib/notcurses.c b/src/lib/notcurses.c index 54fc167a8..707d396ed 100644 --- a/src/lib/notcurses.c +++ b/src/lib/notcurses.c @@ -429,7 +429,7 @@ make_ncpile(notcurses* nc, ncplane* n){ ncplane* ncplane_new_internal(notcurses* nc, ncplane* n, const ncplane_options* nopts){ if(nopts->flags >= (NCPLANE_OPTION_FIXED << 1u)){ - logwarn("Provided unsupported flags %016jx\n", (uintmax_t)nopts->flags); + logwarn("Provided unsupported flags %016" PRIx64 "\n", nopts->flags); } if(nopts->flags & NCPLANE_OPTION_HORALIGNED || nopts->flags & NCPLANE_OPTION_VERALIGNED){ if(n == NULL){ diff --git a/src/lib/reel.c b/src/lib/reel.c index 22b4fa007..36cd94878 100644 --- a/src/lib/reel.c +++ b/src/lib/reel.c @@ -721,7 +721,7 @@ validate_ncreel_opts(ncplane* n, const ncreel_options* ropts){ return false; } if(ropts->flags >= (NCREEL_OPTION_CIRCULAR << 1u)){ - logwarn("Provided unsupported flags 0x%016jx\n", (uintmax_t)ropts->flags); + logwarn("Provided unsupported flags 0x%016" PRIx64 "\n", ropts->flags); } if(ropts->flags & NCREEL_OPTION_CIRCULAR){ if(!(ropts->flags & NCREEL_OPTION_INFINITESCROLL)){ diff --git a/src/lib/render.c b/src/lib/render.c index fa73d1c8e..d9dcdcadc 100644 --- a/src/lib/render.c +++ b/src/lib/render.c @@ -1495,7 +1495,7 @@ engorge_crender_vector(ncpile* n){ const size_t crenderlen = n->dimy * n->dimx; // desired size //fprintf(stderr, "crlen: %d y: %d x:%d\n", crenderlen, dimy, dimx); if(crenderlen != n->crenderlen){ - loginfo("Resizing rvec (%zu) for %p to %zu\n", n->crenderlen, n, crenderlen); + loginfo("Resizing rvec (%lu) for %p to %zu\n", (long unsigned)n->crenderlen, n, crenderlen); struct crender* tmp = realloc(n->crender, sizeof(*tmp) * crenderlen); if(tmp == NULL){ return -1; diff --git a/src/lib/visual.c b/src/lib/visual.c index 011413136..f5ef6a506 100644 --- a/src/lib/visual.c +++ b/src/lib/visual.c @@ -145,7 +145,7 @@ int ncvisual_blitset_geom(const notcurses* nc, const tinfo* tcache, lenx = &fakelenx; } if(vopts && vopts->flags >= (NCVISUAL_OPTION_NOINTERPOLATE << 1u)){ - logwarn("Warning: unknown ncvisual options %016jx\n", (uintmax_t)vopts->flags); + logwarn("Warning: unknown ncvisual options %016" PRIx64 "\n", vopts->flags); } if(vopts && (vopts->flags & NCVISUAL_OPTION_CHILDPLANE) && !vopts->n){ logerror("Requested child plane with NULL n\n");