logging: convert some %jxen to PRIx64

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

View File

@ -861,7 +861,7 @@ ncdirect* ncdirect_core_init(const char* termtype, FILE* outfp, uint64_t flags){
outfp = stdout; outfp = stdout;
} }
if(flags > (NCDIRECT_OPTION_DRAIN_INPUT << 1)){ // allow them through with warning if(flags > (NCDIRECT_OPTION_DRAIN_INPUT << 1)){ // allow them through with warning
logwarn("Passed unsupported flags 0x%016jx\n", (uintmax_t)flags); logwarn("Passed unsupported flags 0x%016" PRIx64 "\n", flags);
} }
if(termtype){ if(termtype){
if(putenv_term(termtype)){ if(putenv_term(termtype)){

View File

@ -349,7 +349,7 @@ ncexecvpe(ncplane* n, const ncsubproc_options* opts, unsigned usepath,
return NULL; return NULL;
} }
if(opts->flags > 0){ if(opts->flags > 0){
logwarn("Provided unsupported flags %016jx\n", (uintmax_t)opts->flags); logwarn("Provided unsupported flags %016" PRIx64 "\n", opts->flags);
} }
#ifndef __MINGW64__ #ifndef __MINGW64__
int fd = -1; int fd = -1;

View File

@ -348,7 +348,7 @@ ncmenu* ncmenu_create(ncplane* n, const ncmenu_options* opts){
return NULL; return NULL;
} }
if(opts->flags >= (NCMENU_OPTION_HIDING << 1u)){ if(opts->flags >= (NCMENU_OPTION_HIDING << 1u)){
logwarn("Provided unsupported flags %016jx\n", (uintmax_t)opts->flags); logwarn("Provided unsupported flags %016" PRIx64 "\n", opts->flags);
} }
int totalheight = 1; int totalheight = 1;
int totalwidth = 2; // start with two-character margin on the left int totalwidth = 2; // start with two-character margin on the left

View File

@ -413,7 +413,7 @@ create_##T(nc##X##plot* ncpp, ncplane* n, const ncplot_options* opts, const T mi
opts = &zeroed; \ opts = &zeroed; \
} \ } \
if(opts->flags >= (NCPLOT_OPTION_PRINTSAMPLE << 1u)){ \ if(opts->flags >= (NCPLOT_OPTION_PRINTSAMPLE << 1u)){ \
logwarn("Provided unsupported flags %016jx\n", (uintmax_t)opts->flags); \ logwarn("Provided unsupported flags %016" PRIx64 "\n", opts->flags); \
} \ } \
/* if miny == maxy (enabling domain detection), they both must be equal to 0 */ \ /* if miny == maxy (enabling domain detection), they both must be equal to 0 */ \
if(miny == maxy && miny){ \ if(miny == maxy && miny){ \

View File

@ -6,7 +6,7 @@ ncreader* ncreader_create(ncplane* n, const ncreader_options* opts){
opts = &zeroed; opts = &zeroed;
} }
if(opts->flags > NCREADER_OPTION_CURSOR){ if(opts->flags > NCREADER_OPTION_CURSOR){
logwarn("Provided unsupported flags %016jx\n", (uintmax_t)opts->flags); logwarn("Provided unsupported flags %016" PRIx64 "\n", opts->flags);
} }
ncreader* nr = malloc(sizeof(*nr)); ncreader* nr = malloc(sizeof(*nr));
if(nr == NULL){ if(nr == NULL){