Skip to content

Commit e56eb5d

Browse files
authored
Merge pull request #44 from LeeLeahy2/var-size
Use proper size when printing the variable
2 parents 30f6e3b + 4a541a0 commit e56eb5d

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
@@ -304,7 +304,7 @@ bool sempUnicoreHashFindFirstComma(SEMP_PARSE_STATE *parse, uint8_t data)
304304
if (scratchPad->unicoreHash.sentenceNameLength == (sizeof(scratchPad->unicoreHash.sentenceName) - 1))
305305
{
306306
sempPrintf(parse->printDebug,
307-
"SEMP %s: Unicore hash (#) sentence name > %d characters",
307+
"SEMP %s: Unicore hash (#) sentence name > %ld characters",
308308
parse->parserName,
309309
sizeof(scratchPad->unicoreHash.sentenceName) - 1);
310310
return sempFirstByte(parse, data);

src/SparkFun_Extensible_Message_Parser.cpp

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

0 commit comments

Comments
 (0)