diff --git a/main/http.c b/main/http.c
index c465d5394c98cdf25173e670bab08300ba17cfc0..40615169c42b9dad039d67f47feafa76983ecfc6 100644
--- a/main/http.c
+++ b/main/http.c
@@ -1031,7 +1031,7 @@ static int http_body_check_chunk_sync(struct ast_tcptls_session_instance *ser)
 	}
 	if (chunk_sync[0] != 0x0D || chunk_sync[1] != 0x0A) {
 		ast_log(LOG_WARNING, "HTTP chunk sync bytes wrong (0x%02X, 0x%02X)\n",
-			chunk_sync[0], chunk_sync[1]);
+			(unsigned) chunk_sync[0], (unsigned) chunk_sync[1]);
 		return -1;
 	}