Sfoglia il codice sorgente

Update webclient_file.c

http错误码增加16进制显示
HubretXie 7 anni fa
parent
commit
b2c41011b2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/webclient_file.c

+ 1 - 1
src/webclient_file.c

@@ -54,7 +54,7 @@ int webclient_get_file(const char* URI, const char* filename)
 
 
     if ((resp_status = webclient_get(session, URI)) != 200)
     if ((resp_status = webclient_get(session, URI)) != 200)
     {
     {
-        LOG_E("get file failed, wrong response: %d.", resp_status);
+        LOG_E("get file failed, wrong response: %d (-0x%X).", resp_status, resp_status);
         rc = -WEBCLIENT_ERROR;
         rc = -WEBCLIENT_ERROR;
         goto __exit;
         goto __exit;
     }
     }