diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2023-06-17 11:20:09 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2023-06-17 11:20:09 +0100 |
commit | c987b043b1fb4c5a25594e822c16787906b09fc8 (patch) | |
tree | 2c8435a031116fc7f536e4e82ad7a9bace827b9a /content/handlers | |
parent | a16d5ff10b2225c7cf7b33ddfff1d947b0dbe40a (diff) | |
download | netsurf-c987b043b1fb4c5a25594e822c16787906b09fc8.tar.gz netsurf-c987b043b1fb4c5a25594e822c16787906b09fc8.tar.bz2 |
Clean up print format specifier usage
Diffstat (limited to 'content/handlers')
-rw-r--r-- | content/handlers/css/dump.c | 4 | ||||
-rw-r--r-- | content/handlers/html/form.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/content/handlers/css/dump.c b/content/handlers/css/dump.c index 799ee5e54..950a6f8cc 100644 --- a/content/handlers/css/dump.c +++ b/content/handlers/css/dump.c @@ -38,7 +38,7 @@ static void dump_css_fixed(FILE *stream, css_fixed f) uint32_t fracpart = ((NSCSS_ABS(f) & 0x3ff) * 1000 + 500) / (1 << 10); #undef NSCSS_ABS - fprintf(stream, "%s%"PRId32".%03ld", f < 0 ? "-" : "", uintpart, fracpart); + fprintf(stream, "%s%"PRIu32".%03"PRIu32, f < 0 ? "-" : "", uintpart, fracpart); } /** @@ -50,7 +50,7 @@ static void dump_css_fixed(FILE *stream, css_fixed f) static void dump_css_number(FILE *stream, css_fixed val) { if (INTTOFIX(FIXTOINT(val)) == val) - fprintf(stream, "%"PRId32"", FIXTOINT(val)); + fprintf(stream, "%"PRId32, FIXTOINT(val)); else dump_css_fixed(stream, val); } diff --git a/content/handlers/html/form.c b/content/handlers/html/form.c index b1e911cb8..afa40ac2e 100644 --- a/content/handlers/html/form.c +++ b/content/handlers/html/form.c @@ -487,7 +487,7 @@ form_dom_to_data_select(dom_html_select_element *select_element, &option_element); if (exp != DOM_NO_ERR) { NSLOG(netsurf, INFO, - "Could not get options item %"PRId32"", option_index); + "Could not get options item %"PRId32, option_index); res = NSERROR_DOM; } else { res = form_dom_to_data_select_option( @@ -1101,7 +1101,7 @@ form_dom_to_data(struct form *form, exp = dom_html_collection_item(elements, element_idx, &element); if (exp != DOM_NO_ERR) { NSLOG(netsurf, INFO, - "retrieving form element %"PRId32" failed with %d", + "retrieving form element %"PRIu32" failed with %d", element_idx, exp); res = NSERROR_DOM; goto form_dom_to_data_error; @@ -1111,7 +1111,7 @@ form_dom_to_data(struct form *form, exp = dom_node_get_node_name(element, &nodename); if (exp != DOM_NO_ERR) { NSLOG(netsurf, INFO, - "getting element node name %"PRId32" failed with %d", + "getting element node name %"PRIu32" failed with %d", element_idx, exp); dom_node_unref(element); res = NSERROR_DOM; |