Skip to content

Commit 4a541a0

Browse files
committed
Use proper size when printing the variable
1 parent 6d2c898 commit 4a541a0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Parse_NMEA.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ bool sempNmeaFindFirstComma(SEMP_PARSE_STATE *parse, uint8_t data)
237237
if (scratchPad->nmea.sentenceNameLength == (sizeof(scratchPad->nmea.sentenceName) - 1))
238238
{
239239
sempPrintf(parse->printDebug,
240-
"SEMP %s: NMEA sentence name > %d characters",
240+
"SEMP %s: NMEA sentence name > %ld characters",
241241
parse->parserName,
242242
sizeof(scratchPad->nmea.sentenceName) - 1);
243243
return sempFirstByte(parse, data);

src/Parse_Unicore_Hash.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ bool sempUnicoreHashFindFirstComma(SEMP_PARSE_STATE *parse, uint8_t data)
305305
if (scratchPad->unicoreHash.sentenceNameLength == (sizeof(scratchPad->unicoreHash.sentenceName) - 1))
306306
{
307307
sempPrintf(parse->printDebug,
308-
"SEMP %s: Unicore hash (#) sentence name > %d characters",
308+
"SEMP %s: Unicore hash (#) sentence name > %ld characters",
309309
parse->parserName,
310310
sizeof(scratchPad->unicoreHash.sentenceName) - 1);
311311
return sempFirstByte(parse, data);

src/SparkFun_Extensible_Message_Parser.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ SEMP_PARSE_STATE * sempAllocateParseStructure(
6767
if (bufferLength < SEMP_MINIMUM_BUFFER_LENGTH)
6868
{
6969
sempPrintf(printDebug,
70-
"SEMP: Increasing bufferLength from %d to %d bytes, minimum size adjustment",
70+
"SEMP: Increasing bufferLength from %ld to %d bytes, minimum size adjustment",
7171
bufferLength, SEMP_MINIMUM_BUFFER_LENGTH);
7272
bufferLength = SEMP_MINIMUM_BUFFER_LENGTH;
7373
}
@@ -135,7 +135,7 @@ void sempPrintParserConfiguration(SEMP_PARSE_STATE *parse, Print *print)
135135
sempPrintf(print, " parserCount: %d", parse->parserCount);
136136
sempPrintf(print, " printError: %p", parse->printError);
137137
sempPrintf(print, " printDebug: %p", parse->printDebug);
138-
sempPrintf(print, " Scratch Pad: %p (%d bytes)",
138+
sempPrintf(print, " Scratch Pad: %p (%ld bytes)",
139139
(void *)parse->scratchPad, parse->buffer - (uint8_t *)parse->scratchPad);
140140
sempPrintf(print, " computeCrc: %p", (void *)parse->computeCrc);
141141
sempPrintf(print, " crc: 0x%08x", parse->crc);

0 commit comments

Comments
 (0)