Skip to content

Commit 1196ba5

Browse files
committed
clean up warnings
1 parent 06cca54 commit 1196ba5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cores/nRF5/debug.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ static void printMemRegion(const char* name, uint32_t top, uint32_t bottom, uint
110110
char buffer[30];
111111
if ( used )
112112
{
113-
sprintf(buffer, "%d / %d (%02lu%%)", used, top-bottom, (used*100)/ (top-bottom));
113+
sprintf(buffer, "%lu / %lu (%02lu%%)", used, top-bottom, (used*100)/ (top-bottom));
114114
}else
115115
{
116-
sprintf(buffer, "%d", top-bottom);
116+
sprintf(buffer, "%lu", top-bottom);
117117
}
118118
printCenter(buffer, WIDTH);
119119

@@ -126,7 +126,6 @@ void dbgMemInfo(void)
126126
Serial.println(" Memory Map");
127127

128128
// Pritn SRAM used for Stack executed by S132 and ISR
129-
uint32_t stack_used = ((uint32_t) __StackTop) -((uint32_t) __StackLimit);
130129
printMemRegion("Stack", ((uint32_t) __StackTop), ((uint32_t) __StackLimit), 0);
131130

132131
// Print Heap usage overall (including memory malloced to tasks)

0 commit comments

Comments
 (0)