#1374 closed defect (fixed)

print format wrong for printk in stack checker message

Reported by: Joel Sherrill Owned by: Joel Sherrill
Priority: normal Milestone: 4.10
Component: unspecified Version: 4.9
Severity: normal Keywords:
Cc: ralf.corsepius@… Blocked By:
Blocking:

Description

Index: libmisc/stackchk/check.c
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/libmisc/stackchk/check.c,v
retrieving revision 1.55
diff -u -r1.55 check.c
--- libmisc/stackchk/check.c 2 Jan 2009 13:01:22 -0000 1.55
+++ libmisc/stackchk/check.c 11 Feb 2009 19:31:54 -0000
@@ -238,7 +238,7 @@

if ( !pattern_ok ) {

printk(

  • " Damaged pattern begins at 0x%08lx and is %zd bytes long\n",

+ " Damaged pattern begins at 0x%08lx and is %d bytes long\n",

(unsigned long) Stack_check_Get_pattern_area(stack),
PATTERN_SIZE_BYTES);

}

Change History (2)

comment:1 Changed on 08/11/10 at 02:17:14 by Ralf Corsepius

Resolution: fixed
Status: newclosed, ralf.corsepius@rtems.org

Though there remains a lot of room for discussion on stackchk/check.c's usage of printf/printk-formating (extensive use of type-casts), I think this BZ is obsolete.

CLOSING.

comment:2 Changed on 10/10/17 at 06:35:44 by Sebastian Huber

Component: miscunspecified
Note: See TracTickets for help on using tickets.