printf tweaks
This commit is contained in:
parent
3b800edbde
commit
a9e185ae4d
|
@ -96,8 +96,7 @@ void StdioOutPuts(const char *Str, StdOutStream *Stream)
|
|||
}
|
||||
|
||||
/* printf-style format of an int or other word-sized object */
|
||||
void StdioFprintfWord(StdOutStream *Stream, const char *Format,
|
||||
unsigned long Value)
|
||||
void StdioFprintfWord(StdOutStream *Stream, const char *Format, unsigned int Value)
|
||||
{
|
||||
if (Stream->FilePtr != NULL)
|
||||
Stream->CharCount += fprintf(Stream->FilePtr, Format, Value);
|
||||
|
@ -310,9 +309,10 @@ int StdioBasePrintf(struct ParseState *Parser, FILE *Stream, char *StrOut,
|
|||
}
|
||||
|
||||
/* copy one character of format across to the OneFormatBuf */
|
||||
if (*FPos != 'l') {
|
||||
OneFormatBuf[OneFormatCount] = *FPos;
|
||||
OneFormatCount++;
|
||||
|
||||
}
|
||||
/* do special actions depending on the conversion type */
|
||||
if (ShowType == &pc->VoidType) {
|
||||
switch (*FPos) {
|
||||
|
|
Loading…
Reference in a new issue