source: rtems/cpukit/libmisc/shell/main_stackuse.c @ 9a77af8

4.104.115
Last change on this file since 9a77af8 was 031deada, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/02/09 at 13:04:13

Add attribute((unused)) to unused function args.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 *  stackuse Command Implementation
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 <stdio.h>
19
20#include <rtems.h>
21#include <rtems/stackchk.h>
22#include <rtems/shell.h>
23#include "internal.h"
24
25int rtems_shell_main_stackuse(
26  int   argc __attribute__((unused)),
27  char *argv[] __attribute__((unused))
28)
29{
30  rtems_stack_checker_report_usage_with_plugin(
31    stdout,
32    (rtems_printk_plugin_t)fprintf
33  );
34  return 0;
35}
36
37rtems_shell_cmd_t rtems_shell_STACKUSE_Command = {
38  "stackuse",                                 /* name */
39  "print per thread stack usage",             /* usage */
40  "rtems",                                    /* topic */
41  rtems_shell_main_stackuse,                  /* command */
42  NULL,                                       /* alias */
43  NULL                                        /* next */
44};
Note: See TracBrowser for help on using the repository browser.