loader: remove shouting from ORB's variable name
[hvf.git] / cp / shell / cmd_set.c
blobbabdc99d9d6d793ebfc4589256bc48098ca1c936
1 /*
2 * (C) Copyright 2007-2010 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
4 * This file is released under the GPLv2. See the COPYING file for more
5 * details.
6 */
8 /*
9 *!!! SET NOTS
10 *!! SYNTAX
11 *! \tok{\sc SET} \tok{\sc NOTS}
12 *!! XATNYS
13 *!! AUTH G
14 *!! PURPOSE
15 *! Disable the console timestamp printing
17 static int cmd_set_nots(struct virt_sys *sys, char *cmd, int len)
19 SHELL_CMD_AUTH(sys, G);
21 sys->print_ts = false;
22 return 0;
26 *!!! SET TS
27 *!! SYNTAX
28 *! \tok{\sc SET} \tok{\sc TS}
29 *!! XATNYS
30 *!! AUTH G
31 *!! PURPOSE
32 *! Enable the console timestamp printing
34 static int cmd_set_ts(struct virt_sys *sys, char *cmd, int len)
36 SHELL_CMD_AUTH(sys, G);
38 sys->print_ts = true;
39 return 0;
42 static struct cpcmd cmd_tbl_set[] = {
43 {"NOTS", cmd_set_nots, NULL},
44 {"TS", cmd_set_ts, NULL},
45 {"", NULL, NULL},