mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
logging: convert some %jxen to PRIx64
This commit is contained in:
parent
a260649628
commit
174c4e269f
@ -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…
Reference in New Issue
Block a user