Skip to content

Commit 6071102

Browse files
cuiziweizwxiaoxiang781216
authored andcommitted
nuttx/note:fix missing the last character when printing custom labels.
Signed-off-by: cuiziwei <[email protected]>
1 parent db78cc9 commit 6071102

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/note/noteram_driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ static int noteram_dump_one(FAR uint8_t *p, FAR struct lib_outstream_s *s,
956956
{
957957
FAR struct note_binary_s *nbi = (FAR struct note_binary_s *)p;
958958
char c = note->nc_type == NOTE_DUMP_BEGIN ? 'B' : 'E';
959-
int len = note->nc_length - sizeof(struct note_binary_s);
959+
int len = note->nc_length - SIZEOF_NOTE_EVENT(0);
960960
uintptr_t ip;
961961

962962
ip = nbi->nbi_ip;

0 commit comments

Comments
 (0)