Commit 2a91838f authored by Alexandre Julliard's avatar Alexandre Julliard

rpcrt4: Don't use sizeof in traces to avoid printf format warnings.

parent 96ad6881
......@@ -485,7 +485,7 @@ RPC_STATUS RPCRT4_Receive(RpcConnection *Connection, RpcPktHdr **Header,
/* read packet common header */
dwRead = rpcrt4_conn_read(Connection, &common_hdr, sizeof(common_hdr));
if (dwRead != sizeof(common_hdr)) {
WARN("Short read of header, %ld/%d bytes\n", dwRead, sizeof(common_hdr));
WARN("Short read of header, %ld bytes\n", dwRead);
status = RPC_S_PROTOCOL_ERROR;
goto fail;
}
......
......@@ -317,7 +317,7 @@ static RPC_STATUS rpcrt4_ncacn_np_parse_top_of_tower(const unsigned char *tower_
const twr_empty_floor_t *smb_floor = (const twr_empty_floor_t *)tower_data;
const twr_empty_floor_t *nb_floor;
TRACE("(%p, %d, %p, %p)\n", tower_data, tower_size, networkaddr, endpoint);
TRACE("(%p, %d, %p, %p)\n", tower_data, (int)tower_size, networkaddr, endpoint);
if (tower_size < sizeof(*smb_floor))
return EPT_S_NOT_REGISTERED;
......@@ -408,7 +408,7 @@ static RPC_STATUS rpcrt4_ncalrpc_parse_top_of_tower(const unsigned char *tower_d
{
const twr_empty_floor_t *pipe_floor = (const twr_empty_floor_t *)tower_data;
TRACE("(%p, %d, %p, %p)\n", tower_data, tower_size, networkaddr, endpoint);
TRACE("(%p, %d, %p, %p)\n", tower_data, (int)tower_size, networkaddr, endpoint);
*networkaddr = NULL;
*endpoint = NULL;
......@@ -642,7 +642,7 @@ static RPC_STATUS rpcrt4_ncacn_ip_tcp_parse_top_of_tower(const unsigned char *to
const twr_ipv4_floor_t *ipv4_floor;
struct in_addr in_addr;
TRACE("(%p, %d, %p, %p)\n", tower_data, tower_size, networkaddr, endpoint);
TRACE("(%p, %d, %p, %p)\n", tower_data, (int)tower_size, networkaddr, endpoint);
if (tower_size < sizeof(*tcp_floor))
return EPT_S_NOT_REGISTERED;
......
......@@ -145,7 +145,7 @@ BOOL RPCRT4_SendReceiveNPMsg(HANDLE np, PRPCSS_NP_MESSAGE msg, char *vardata, PR
}
if (count != sizeof(RPCSS_NP_REPLY)) {
ERR("read count mismatch. got %ld, expected %u.\n", count, sizeof(RPCSS_NP_REPLY));
ERR("read count mismatch. got %ld.\n", count);
return FALSE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment