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

This commit is contained in:
Alexandre Julliard 2006-06-13 14:11:58 +02:00
parent 1f39252d27
commit 46a5f91357

View file

@ -204,8 +204,8 @@ static VOID HandlerThread(LPVOID lpvPipeHandle)
);
if ( (!success) || (bytesread != sizeof(RPCSS_NP_MESSAGE)) ||
(vardata_payload_msg.message_type != RPCSS_NP_MESSAGE_TYPEID_VARDATAPAYLOADMSG) ) {
WINE_ERR("vardata payload read failure! (s=%s,br=%ld,exp_br=%d,mt=%u,mt_exp=%u\n",
success ? "TRUE" : "FALSE", bytesread, sizeof(RPCSS_NP_MESSAGE),
WINE_ERR("vardata payload read failure! (s=%s,br=%ld,mt=%u,mt_exp=%u\n",
success ? "TRUE" : "FALSE", bytesread,
vardata_payload_msg.message_type, RPCSS_NP_MESSAGE_TYPEID_VARDATAPAYLOADMSG);
success = FALSE;
break;
@ -237,8 +237,7 @@ static VOID HandlerThread(LPVOID lpvPipeHandle)
);
if ( (!success) || (written != sizeof(RPCSS_NP_REPLY)) )
WINE_WARN("Message reply failed. (successs=%s, br=%ld, exp_br=%d)\n",
success ? "TRUE" : "FALSE", written, sizeof(RPCSS_NP_REPLY));
WINE_WARN("Message reply failed. (success=%d, br=%ld)\n", success, written);
else
WINE_TRACE("Reply sent successfully.\n");
} else
@ -426,7 +425,7 @@ static BOOL RPCSS_SendReceiveNPMsg(HANDLE np, PRPCSS_NP_MESSAGE msg, PRPCSS_NP_R
}
if (count != sizeof(RPCSS_NP_REPLY)) {
WINE_ERR("read count mismatch. got %ld, expected %u.\n", count, sizeof(RPCSS_NP_REPLY));
WINE_ERR("read count mismatch, got %ld.\n", count);
return FALSE;
}