mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:41:40 +03:00
lib: stop overriding system printf symbols
After this patch, the codebase no longer overrides system printf functions. Instead it explicitly calls either the curl printf functions `curl_m*printf()` or the system ones using their original names. Also: - drop unused `curl_printf.h` includes. - checksrc: ban system printf functions, allow where necessary. Follow-up todb98daab05#18844 Follow-up to4deea9396b#18814 Closes #18866
This commit is contained in:
parent
13f10add17
commit
b12da22db1
147 changed files with 1030 additions and 1145 deletions
14
lib/hash.c
14
lib/hash.c
|
|
@ -51,16 +51,16 @@ void Curl_hash_print(struct Curl_hash *h,
|
|||
if(!h)
|
||||
return;
|
||||
|
||||
fprintf(stderr, "=Hash dump=\n");
|
||||
curl_mfprintf(stderr, "=Hash dump=\n");
|
||||
|
||||
Curl_hash_start_iterate(h, &iter);
|
||||
|
||||
he = Curl_hash_next_element(&iter);
|
||||
while(he) {
|
||||
if(iter.slot_index != last_index) {
|
||||
fprintf(stderr, "index %d:", (int)iter.slot_index);
|
||||
curl_mfprintf(stderr, "index %d:", (int)iter.slot_index);
|
||||
if(last_index != UINT_MAX) {
|
||||
fprintf(stderr, "\n");
|
||||
curl_mfprintf(stderr, "\n");
|
||||
}
|
||||
last_index = iter.slot_index;
|
||||
}
|
||||
|
|
@ -68,13 +68,13 @@ void Curl_hash_print(struct Curl_hash *h,
|
|||
if(func)
|
||||
func(he->ptr);
|
||||
else
|
||||
fprintf(stderr, " [key=%.*s, he=%p, ptr=%p]",
|
||||
(int)he->key_len, (char *)he->key,
|
||||
(void *)he, (void *)he->ptr);
|
||||
curl_mfprintf(stderr, " [key=%.*s, he=%p, ptr=%p]",
|
||||
(int)he->key_len, (char *)he->key,
|
||||
(void *)he, (void *)he->ptr);
|
||||
|
||||
he = Curl_hash_next_element(&iter);
|
||||
}
|
||||
fprintf(stderr, "\n");
|
||||
curl_mfprintf(stderr, "\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue