pkarashchenko commented on a change in pull request #5007:
URL: https://github.com/apache/incubator-nuttx/pull/5007#discussion_r769685666
##########
File path: arch/avr/src/avr/up_dumpstate.c
##########
@@ -51,7 +52,11 @@ static void up_stackdump(uint16_t sp, uint16_t stack_top)
{
uint16_t stack;
- for (stack = sp & ~3; stack < (stack_top & ~0x1f); stack += 12)
+ /* Flush any buffered SYSLOG data to avoid overwrite */
+
+ syslog_flush();
+
+ for (stack = sp & ~3; stack < (stack_top & ~0x3); stack += 12)
Review comment:
```suggestion
for (stack = sp & ~0x3; stack < (stack_top & ~0x3); stack += 12)
```
Just to keep same style as in other files
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]