logging: convert some %jxen to PRIx64

This commit is contained in:
nick black 2021-10-05 04:59:20 -04:00
parent 174c4e269f
commit a11a1bbfc9
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
5 changed files with 5 additions and 5 deletions

View File

@ -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){

View File

@ -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){

View File

@ -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)){

View File

@ -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;

View File

@ -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");