kdb_hello.c (c25abcd625505f53b72dc156bac32b5120826742) | kdb_hello.c (e868f0a3c4b9c1d7721f08b703142a876814a3f8) |
---|---|
1/* 2 * Created by: Jason Wessel <jason.wessel@windriver.com> 3 * 4 * Copyright (c) 2010 Wind River Systems, Inc. All Rights Reserved. 5 * 6 * This file is licensed under the terms of the GNU General Public 7 * License version 2. This program is licensed "as is" without any 8 * warranty of any kind, whether express or implied. --- 15 unchanged lines hidden (view full) --- 24 kdb_printf("Hello %s.\n", argv[1]); 25 else 26 kdb_printf("Hello world!\n"); 27 28 return 0; 29} 30 31static kdbtab_t hello_cmd = { | 1/* 2 * Created by: Jason Wessel <jason.wessel@windriver.com> 3 * 4 * Copyright (c) 2010 Wind River Systems, Inc. All Rights Reserved. 5 * 6 * This file is licensed under the terms of the GNU General Public 7 * License version 2. This program is licensed "as is" without any 8 * warranty of any kind, whether express or implied. --- 15 unchanged lines hidden (view full) --- 24 kdb_printf("Hello %s.\n", argv[1]); 25 else 26 kdb_printf("Hello world!\n"); 27 28 return 0; 29} 30 31static kdbtab_t hello_cmd = { |
32 .cmd_name = "hello", 33 .cmd_func = kdb_hello_cmd, 34 .cmd_usage = "[string]", 35 .cmd_help = "Say Hello World or Hello [string]", | 32 .name = "hello", 33 .func = kdb_hello_cmd, 34 .usage = "[string]", 35 .help = "Say Hello World or Hello [string]", |
36}; 37 38static int __init kdb_hello_cmd_init(void) 39{ 40 /* 41 * Registration of a dynamically added kdb command is done with 42 * kdb_register(). 43 */ --- 15 unchanged lines hidden --- | 36}; 37 38static int __init kdb_hello_cmd_init(void) 39{ 40 /* 41 * Registration of a dynamically added kdb command is done with 42 * kdb_register(). 43 */ --- 15 unchanged lines hidden --- |