esp_http_client: fix -Werror-format compile errors for linux target

This commit is contained in:
Harshit Malpani
2022-12-23 17:52:48 +05:30
parent 1c77e13d35
commit 68ded2c350
2 changed files with 8 additions and 8 deletions

View File

@@ -117,7 +117,7 @@ char *http_auth_digest(const char *username, const char *password, esp_http_auth
}
}
int rc = asprintf(&auth_str, "Digest username=\"%s\", realm=\"%s\", nonce=\"%s\", uri=\"%s\", algorithm=\"MD5\", "
"response=\"%s\", qop=%s, nc=%08x, cnonce=\"%016llx\"",
"response=\"%s\", qop=%s, nc=%08x, cnonce=%016"PRIx64,
username, auth_data->realm, auth_data->nonce, auth_data->uri, digest, auth_data->qop, auth_data->nc, auth_data->cnonce);
if (rc < 0) {
ESP_LOGE(TAG, "asprintf() returned: %d", rc);