mirror of
https://github.com/curl/curl.git
synced 2026-07-24 07:47:19 +03:00
lib: fix formatting nits (part 3)
From `lib/h` to `lib/w`. part 1:47a1ab2ebe#19764 part 2:86b346443b#19800 Closes #19811
This commit is contained in:
parent
dc8c0d54a5
commit
c3b030b860
102 changed files with 2001 additions and 2226 deletions
|
|
@ -165,8 +165,7 @@ static bool countcheck(const char *func, int line, const char *source)
|
|||
if(memlimit && source) {
|
||||
if(!memsize) {
|
||||
/* log to file */
|
||||
curl_dbg_log("LIMIT %s:%d %s reached memlimit\n",
|
||||
source, line, func);
|
||||
curl_dbg_log("LIMIT %s:%d %s reached memlimit\n", source, line, func);
|
||||
/* log to stderr also */
|
||||
curl_mfprintf(stderr, "LIMIT %s:%d %s reached memlimit\n",
|
||||
source, line, func);
|
||||
|
|
@ -336,8 +335,8 @@ void curl_dbg_free(void *ptr, int line, const char *source)
|
|||
if(ptr) {
|
||||
struct memdebug *mem;
|
||||
|
||||
if(source)
|
||||
curl_dbg_log("MEM %s:%d free(%p)\n", source, line, (void *)ptr);
|
||||
if(source)
|
||||
curl_dbg_log("MEM %s:%d free(%p)\n", source, line, (void *)ptr);
|
||||
|
||||
#ifdef __INTEL_COMPILER
|
||||
# pragma warning(push)
|
||||
|
|
@ -386,7 +385,7 @@ SEND_TYPE_RETV curl_dbg_send(SEND_TYPE_ARG1 sockfd,
|
|||
rc = send(sockfd, buf, len, flags);
|
||||
if(source)
|
||||
curl_dbg_log("SEND %s:%d send(%lu) = %ld\n",
|
||||
source, line, (unsigned long)len, (long)rc);
|
||||
source, line, (unsigned long)len, (long)rc);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
|
@ -401,7 +400,7 @@ RECV_TYPE_RETV curl_dbg_recv(RECV_TYPE_ARG1 sockfd, RECV_TYPE_ARG2 buf,
|
|||
rc = recv(sockfd, buf, len, flags);
|
||||
if(source)
|
||||
curl_dbg_log("RECV %s:%d recv(%lu) = %ld\n",
|
||||
source, line, (unsigned long)len, (long)rc);
|
||||
source, line, (unsigned long)len, (long)rc);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
|
@ -515,8 +514,7 @@ int curl_dbg_fclose(FILE *file, int line, const char *source)
|
|||
DEBUGASSERT(file != NULL);
|
||||
|
||||
if(source)
|
||||
curl_dbg_log("FILE %s:%d fclose(%p)\n",
|
||||
source, line, (void *)file);
|
||||
curl_dbg_log("FILE %s:%d fclose(%p)\n", source, line, (void *)file);
|
||||
|
||||
/* !checksrc! disable BANNEDFUNC 1 */
|
||||
res = fclose(file);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue