Function report |
Source Code:kernel\debug\kdb\kdb_main.c |
Create Date:2022-07-28 11:41:59 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kdb_dmesg - This function implements the 'dmesg' command to display* the contents of the syslog buffer.* dmesg [lines] [adjust]
Proto:static int kdb_dmesg(int argc, const char **argv)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
int | argc | |
const char ** | argv |
2096 | lines = 0 |
2097 | adjust = 0 |
2098 | n = 0 |
2099 | skip = 0 |
2100 | struct kmsg_dumper dumper = {active = 1} |
2104 | If argc > 2 Then Return KDB_ARGCOUNT |
2106 | If argc Then |
2111 | If argc > 1 Then |
2119 | diag = kdbgetintenv - This function will return the value of an* integer-valued environment variable |
2121 | const char * setargs[] = {"set", "LOGGING", "0"} |
2127 | n++ |
2129 | If lines < 0 Then |
2130 | If adjust >= n Then kdb_printf("buffer only contains %d lines, nothing printed\n", n) |
2138 | Else if lines > 0 Then |
2142 | kdb_printf("buffer only contains %d lines, nothing printed\n", n) |
2145 | Else if skip < 0 Then |
2151 | Else |
2160 | If skip Then |
2161 | skip-- |
2162 | Continue |
2164 | If Not lines -- Then Break |
2166 | If KDB_FLAG(CMD_INTERRUPT) Then Return 0 |
2169 | kdb_printf("%.*s\n", (int)len - 1, buf) |
2172 | Return 0 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |