全部博文(51)
分类: LINUX
2013-08-29 17:50:48
In the example below, the order is always MSB --> LSB
MSB |
|
|
|
|
|
|
|
LSB |
||
Example level for each category |
4 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
5 |
7 |
category |
Ict |
HLC |
HLQ |
LLC |
LLQ |
MLC |
MLQ |
SCN |
TME |
ERR |
Bit Mask |
100 |
000 |
000 |
000 |
000 |
000 |
000 |
000 |
101 |
111 |
Hex bit map |
|
|
10 |
0000 |
0000 |
0000 |
0000 |
0000 |
0010 |
1111 |
Hex conversion |
|
|
2 |
0 |
0 |
0 |
0 |
0 |
2 |
F |
The above table shows you how to use Excel (bin2hex) to quickly find the HEX conversion value to use in order to enable the logging level you desire.
As demonstrated in the above table:
ERROR = 7
Timeout = 5
IOCTL = 4
The hex value would be
Answer: 0x2000002f