#endif
/* some GCC compilers cause false positive warnings if we allow this
warning */
- SNPRINTF(buf, buflen, "Unknown error %lu (0x%08lX)", err, err);
+ SNPRINTF(buf, buflen, "Unknown error %lu (0x%08lx)", err, err);
#if defined(__GNUC__) && __GNUC__ >= 7
#pragma GCC diagnostic pop
#endif
if(err == SEC_E_ILLEGAL_MESSAGE) {
curl_msnprintf(buf, buflen,
- "SEC_E_ILLEGAL_MESSAGE (0x%08lX) - This error usually "
+ "SEC_E_ILLEGAL_MESSAGE (0x%08lx) - This error usually "
"occurs when a fatal SSL/TLS alert is received (e.g. "
"handshake failed). More detail may be available in "
"the Windows System event log.", err);
else {
char msgbuf[256];
if(curlx_get_winapi_error((DWORD)err, msgbuf, sizeof(msgbuf)))
- curl_msnprintf(buf, buflen, "%s (0x%08lX) - %s", txt, err, msgbuf);
+ curl_msnprintf(buf, buflen, "%s (0x%08lx) - %s", txt, err, msgbuf);
else
- curl_msnprintf(buf, buflen, "%s (0x%08lX)", txt, err);
+ curl_msnprintf(buf, buflen, "%s (0x%08lx)", txt, err);
}
#else
&type_3_desc,
&attrs, NULL);
if(status != SEC_E_OK) {
- infof(data, "NTLM handshake failure (type-3 message): Status=%lx",
+ infof(data, "NTLM handshake failure (type-3 message): Status=0x%08lx",
status);
if(status == SEC_E_INSUFFICIENT_MEMORY)
cert_showfilename_error);
else
failf(data, "schannel: Failed to import cert file %s, "
- "last error is 0x%lx",
+ "last error is 0x%08lx",
cert_showfilename_error, errorcode);
return CURLE_SSL_CERTPROBLEM;
}
if(!client_certs[0]) {
failf(data, "schannel: Failed to get certificate from file %s"
- ", last error is 0x%lx",
+ ", last error is 0x%08lx",
cert_showfilename_error, GetLastError());
CertCloseStore(cert_store, 0);
return CURLE_SSL_CERTPROBLEM;
char *path_utf8 =
curlx_convert_tchar_to_UTF8(cert_store_path);
failf(data, "schannel: Failed to open cert store %lx %s, "
- "last error is 0x%lx",
+ "last error is 0x%08lx",
cert_store_name,
(path_utf8 ? path_utf8 : "(unknown)"),
GetLastError());
0, FALSE, DUPLICATE_SAME_ACCESS);
if(!r) {
- errorf("DuplicateHandle error: %08lx", GetLastError());
+ errorf("DuplicateHandle error: 0x%08lx", GetLastError());
break;
}
stdin_thread = CreateThread(NULL, 0, win_stdin_thread_func,
tdata, 0, NULL);
if(!stdin_thread) {
- errorf("CreateThread error: %08lx", GetLastError());
+ errorf("CreateThread error: 0x%08lx", GetLastError());
break;
}
/* Set the stdin handle to read from the socket. */
if(SetStdHandle(STD_INPUT_HANDLE, (HANDLE)socket_r) == 0) {
- errorf("SetStdHandle error: %08lx", GetLastError());
+ errorf("SetStdHandle error: 0x%08lx", GetLastError());
break;
}
}
}
else {
- warnf("Failed to get filetime: GetFileTime failed: GetLastError %lu",
+ warnf("Failed to get filetime: GetFileTime failed: GetLastError 0x%08lx",
GetLastError());
}
CloseHandle(hfile);
}
else if(GetLastError() != ERROR_FILE_NOT_FOUND) {
- warnf("Failed to get filetime: CreateFile failed: GetLastError %lu",
+ warnf("Failed to get filetime: CreateFile failed: GetLastError 0x%08lx",
GetLastError());
}
#else
ft.dwHighDateTime = (DWORD)(converted >> 32);
if(!SetFileTime(hfile, NULL, &ft, &ft)) {
warnf("Failed to set filetime %" CURL_FORMAT_CURL_OFF_T
- " on outfile: SetFileTime failed: GetLastError %lu",
+ " on outfile: SetFileTime failed: GetLastError 0x%08lx",
filetime, GetLastError());
}
CloseHandle(hfile);
}
else {
warnf("Failed to set filetime %" CURL_FORMAT_CURL_OFF_T
- " on outfile: CreateFile failed: GetLastError %lu",
+ " on outfile: CreateFile failed: GetLastError 0x%08lx",
filetime, GetLastError());
}
results[i] = CURL_LAST; /* initialize with invalid value */
th = CreateThread(NULL, 0, t3026_run_thread, &results[i], 0, NULL);
if(!th) {
- curl_mfprintf(stderr, "%s:%d Couldn't create thread, errno %lu\n",
+ curl_mfprintf(stderr, "%s:%d Couldn't create thread, "
+ "GetLastError 0x%08lx\n",
__FILE__, __LINE__, GetLastError());
tid_count = i;
test_failure = TEST_ERR_MAJOR_BAD;