logging: convert some %jxen to PRIx64

pull/2239/head
nick black 3 years ago
parent a260649628
commit 174c4e269f
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -861,7 +861,7 @@ ncdirect* ncdirect_core_init(const char* termtype, FILE* outfp, uint64_t flags){
outfp = stdout;
}
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(putenv_term(termtype)){

@ -349,7 +349,7 @@ ncexecvpe(ncplane* n, const ncsubproc_options* opts, unsigned usepath,
return NULL;
}
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__
int fd = -1;

@ -348,7 +348,7 @@ ncmenu* ncmenu_create(ncplane* n, const ncmenu_options* opts){
return NULL;
}
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 totalwidth = 2; // start with two-character margin on the left

@ -413,7 +413,7 @@ create_##T(nc##X##plot* ncpp, ncplane* n, const ncplot_options* opts, const T mi
opts = &zeroed; \
} \
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 && miny){ \

@ -6,7 +6,7 @@ ncreader* ncreader_create(ncplane* n, const ncreader_options* opts){
opts = &zeroed;
}
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));
if(nr == NULL){

Loading…
Cancel
Save