4.104.115
Last change
on this file since e4a3d93 was
a3ddb08b,
checked in by Joel Sherrill <joel.sherrill@…>, on 03/05/08 at 02:49:35
|
2008-03-04 Joel Sherrill <joel.sherrill@…>
- libmisc/Makefile.am, libmisc/shell/main_cp.c,
libmisc/shell/main_cpuuse.c, libmisc/shell/main_date.c,
libmisc/shell/main_mallocinfo.c, libmisc/shell/main_netstats.c,
libmisc/shell/main_perioduse.c, libmisc/shell/main_stackuse.c,
libmisc/shell/main_wkspaceinfo.c, libmisc/shell/print_heapinfo.c,
libmisc/shell/shell.c, libmisc/shell/shell.h,
libmisc/shell/shell_makeargs.c, libmisc/shell/shellconfig.c,
libmisc/shell/shellconfig.h, libmisc/shell/write_file.c: Add initial
capability to automatically execute a script from the filesystem. Add
echo command from NetBSD and sleep command.
- libmisc/shell/main_echo.c, libmisc/shell/main_sleep.c,
libmisc/shell/shell_script.c: New files.
|
-
Property mode set to
100644
|
File size:
720 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Print Heap Information Structure |
---|
3 | * |
---|
4 | * COPYRIGHT (c) 1989-2008. |
---|
5 | * On-Line Applications Research Corporation (OAR). |
---|
6 | * |
---|
7 | * The license and distribution terms for this file may be |
---|
8 | * found in the file LICENSE in this distribution or at |
---|
9 | * http://www.rtems.com/license/LICENSE. |
---|
10 | * |
---|
11 | * $Id$ |
---|
12 | */ |
---|
13 | |
---|
14 | #ifdef HAVE_CONFIG_H |
---|
15 | #include "config.h" |
---|
16 | #endif |
---|
17 | |
---|
18 | #include <inttypes.h> |
---|
19 | |
---|
20 | #include <rtems.h> |
---|
21 | #include <rtems/shell.h> |
---|
22 | #include "internal.h" |
---|
23 | |
---|
24 | void rtems_shell_print_heap_info( |
---|
25 | const char *c, |
---|
26 | Heap_Information *h |
---|
27 | ) |
---|
28 | { |
---|
29 | printf( |
---|
30 | "Number of %s blocks: %" PRId32 "\n" |
---|
31 | "Largest %s block: %" PRId32 "\n" |
---|
32 | "Total bytes %s: %" PRId32 "\n", |
---|
33 | c, h->number, |
---|
34 | c, h->largest, |
---|
35 | c, h->total |
---|
36 | ); |
---|
37 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.