[cli] print channel mask with leading '0x' (#5344)

To be conssitent with intput format.
This commit is contained in:
Jonathan Hui
2020-08-05 15:35:01 -07:00
parent 0af18a54ae
commit 73afdadaa8
13 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ Done
> dataset
Active Timestamp: 1
Channel: 13
Channel Mask: 07fff800
Channel Mask: 0x07fff800
Ext PAN ID: d63e8e3e495ebbc3
Mesh Local Prefix: fd3d:b50b:f96d:722d/64
Master Key: dfd34f0f05cad978ec4e32b0413038ff
+1 -1
View File
@@ -157,7 +157,7 @@ In the J-Link Device drop-down list select the serial number of the device to fl
> dataset
Active Timestamp: 1
Channel: 13
Channel Mask: 07fff800
Channel Mask: 0x07fff800
Ext PAN ID: d63e8e3e495ebbc3
Mesh Local Prefix: fd3d:b50b:f96d:722d/64
Master Key: dfd34f0f05cad978ec4e32b0413038ff
+1 -1
View File
@@ -170,7 +170,7 @@ In the J-Link Device drop-down list select the serial number of the device to fl
> dataset
Active Timestamp: 1
Channel: 13
Channel Mask: 07fff800
Channel Mask: 0x07fff800
Ext PAN ID: d63e8e3e495ebbc3
Mesh Local Prefix: fd3d:b50b:f96d:722d/64
Master Key: dfd34f0f05cad978ec4e32b0413038ff
+1 -1
View File
@@ -163,7 +163,7 @@ In the J-Link Device drop-down list select the serial number of the device to fl
> dataset
Active Timestamp: 1
Channel: 13
Channel Mask: 07fff800
Channel Mask: 0x07fff800
Ext PAN ID: d63e8e3e495ebbc3
Mesh Local Prefix: fd3d:b50b:f96d:722d/64
Master Key: dfd34f0f05cad978ec4e32b0413038ff
+1 -1
View File
@@ -61,7 +61,7 @@ Compiled binaries may be flashed onto the MKW41Z512 using drag-and-drop into the
> dataset
Active Timestamp: 1
Channel: 13
Channel Mask: 07fff800
Channel Mask: 0x07fff800
Ext PAN ID: d63e8e3e495ebbc3
Mesh Local Prefix: fd3d:b50b:f96d:722d/64
Master Key: dfd34f0f05cad978ec4e32b0413038ff
@@ -148,7 +148,7 @@ To test the example:
> dataset
Active Timestamp: 1
Channel: 13
Channel Mask: 07fff800
Channel Mask: 0x07fff800
Ext PAN ID: d63e8e3e495ebbc3
Mesh Local Prefix: fd3d:b50b:f96d:722d/64
Master Key: dfd34f0f05cad978ec4e32b0413038ff
@@ -187,7 +187,7 @@ To test the example:
> dataset
Active Timestamp: 1
Channel: 13
Channel Mask: 07fff800
Channel Mask: 0x07fff800
Ext PAN ID: d63e8e3e495ebbc3
Mesh Local Prefix: fd3d:b50b:f96d:722d/64
Master Key: dfd34f0f05cad978ec4e32b0413038ff
@@ -328,7 +328,7 @@ To test the example:
> dataset
Active Timestamp: 1
Channel: 13
Channel Mask: 07fff800
Channel Mask: 0x07fff800
Ext PAN ID: d63e8e3e495ebbc3
Mesh Local Prefix: fd3d:b50b:f96d:722d/64
Master Key: dfd34f0f05cad978ec4e32b0413038ff
+1 -1
View File
@@ -122,7 +122,7 @@ $ (gdb) c
> dataset
Active Timestamp: 1
Channel: 13
Channel Mask: 07fff800
Channel Mask: 0x07fff800
Ext PAN ID: d63e8e3e495ebbc3
Mesh Local Prefix: fd3d:b50b:f96d:722d/64
Master Key: dfd34f0f05cad978ec4e32b0413038ff
+2 -2
View File
@@ -32,7 +32,7 @@ Form a network with the device that has Commissioner support.
> dataset
Active Timestamp: 1
Channel: 13
Channel Mask: 07fff800
Channel Mask: 0x07fff800
Ext PAN ID: d63e8e3e495ebbc3
Mesh Local Prefix: fd3d:b50b:f96d:722d/64
Master Key: dfd34f0f05cad978ec4e32b0413038ff
@@ -118,7 +118,7 @@ Form a network with the device that has Commissioner support.
> dataset active
Active Timestamp: 1
Channel: 13
Channel Mask: 07fff800
Channel Mask: 0x07fff800
Ext PAN ID: d63e8e3e495ebbc3
Mesh Local Prefix: fd3d:b50b:f96d:722d/64
Master Key: dfd34f0f05cad978ec4e32b0413038ff
+4 -4
View File
@@ -37,7 +37,7 @@ The Pending Operational Dataset is used to communicate changes to the Active Ope
> dataset
Active Timestamp: 1
Channel: 13
Channel Mask: 07fff800
Channel Mask: 0x07fff800
Ext PAN ID: d63e8e3e495ebbc3
Mesh Local Prefix: fd3d:b50b:f96d:722d/64
Master Key: dfd34f0f05cad978ec4e32b0413038ff
@@ -96,7 +96,7 @@ After the device successfully attaches to a Thread network, the device will retr
> dataset active
Active Timestamp: 1
Channel: 13
Channel Mask: 07fff800
Channel Mask: 0x07fff800
Ext PAN ID: d63e8e3e495ebbc3
Mesh Local Prefix: fd3d:b50b:f96d:722d/64
Master Key: dfd34f0f05cad978ec4e32b0413038ff
@@ -173,7 +173,7 @@ Print Active Operational Dataset in human-readable form.
> dataset active
Active Timestamp: 1
Channel: 13
Channel Mask: 07fff800
Channel Mask: 0x07fff800
Ext PAN ID: d63e8e3e495ebbc3
Mesh Local Prefix: fd3d:b50b:f96d:722d/64
Master Key: dfd34f0f05cad978ec4e32b0413038ff
@@ -361,7 +361,7 @@ Print Pending Operational Dataset in human-readable form.
Pending Timestamp: 2
Active Timestamp: 15
Channel: 16
Channel Mask: 07fff800
Channel Mask: 0x07fff800
Delay: 58706
Ext PAN ID: d63e8e3e495ebbc3
Mesh Local Prefix: fd3d:b50b:f96d:722d/64
+1 -1
View File
@@ -98,7 +98,7 @@ otError Dataset::Print(otOperationalDataset &aDataset)
if (aDataset.mComponents.mIsChannelMaskPresent)
{
mInterpreter.mServer->OutputFormat("Channel Mask: %08x\r\n", aDataset.mChannelMask);
mInterpreter.mServer->OutputFormat("Channel Mask: 0x%08x\r\n", aDataset.mChannelMask);
}
if (aDataset.mComponents.mIsDelayPresent)
+4 -4
View File
@@ -37,7 +37,7 @@ send "dataset active\n"
expect -re {Active Timestamp: \d+}
expect -re {Channel: (\d+)}
set channel $expect_out(1,string)
expect -re {Channel Mask: [0-9a-f]{8}}
expect -re {Channel Mask: 0x[0-9a-f]{8}}
expect -re {Ext PAN ID: [0-9a-f]{16}}
expect -re {Mesh Local Prefix: ([0-9a-f]{1,4}:){3}[0-9a-f]{1,4}\/64}
expect -re {Master Key: [0-9a-f]{32}}
@@ -87,7 +87,7 @@ if {$channel == 11} {
} else {
expect "Channel: 11"
}
expect "Channel Mask: 03fff800"
expect "Channel Mask: 0x03fff800"
expect -re {Delay: \d+}
expect "Ext PAN ID: aabbccddeeff0011"
expect "Mesh Local Prefix: fdde:4860:0:0/64"
@@ -110,7 +110,7 @@ if {$channel == 11} {
} else {
expect "Channel: 11"
}
expect "Channel Mask: 03fff800"
expect "Channel Mask: 0x03fff800"
expect "Ext PAN ID: aabbccddeeff0011"
expect "Mesh Local Prefix: fdde:4860:0:0/64"
expect "Master Key: aabbccddeeff00112233445566778899"
@@ -130,7 +130,7 @@ if {$channel == 11} {
} else {
expect "Channel: 11"
}
expect "Channel Mask: 03fff800"
expect "Channel Mask: 0x03fff800"
expect "Ext PAN ID: aabbccddeeff0011"
expect "Mesh Local Prefix: fdde:4860:0:0/64"
expect "Master Key: aabbccddeeff00112233445566778899"