fix printf ret size

This commit is contained in:
pvvx 2017-02-15 22:09:00 +03:00
parent 34d4d9f465
commit 92002b1ad1

View file

@ -712,11 +712,6 @@ Exit:
} }
/*********************************************************/ /*********************************************************/
static int VSprintfPatch(char *buf, const char *fmt, const int *dp) static int VSprintfPatch(char *buf, const char *fmt, const int *dp)
@ -899,20 +894,18 @@ static int VSprintfPatch(char *buf, const char *fmt, const int *dp)
} }
u32 DiagPrintfPatch( int DiagPrintfPatch(
IN const char *fmt, ... IN const char *fmt, ...
) )
{ {
(void)VSprintfPatch(0, fmt, ((const int *)&fmt)+1); return VSprintfPatch(0, fmt, ((const int *)&fmt)+1);
return 1;
} }
u32 DiagSPrintfPatch( int DiagSPrintfPatch(
IN u8 *buf, IN u8 *buf,
IN const char *fmt, ... IN const char *fmt, ...
) )
{ {
(void)VSprintfPatch((char*)buf, fmt, ((const int *)&fmt)+1); return VSprintfPatch((char*)buf, fmt, ((const int *)&fmt)+1);
return 1;
} }
#endif #endif