mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
pr: fix page ranges
pr: Fix page ranges
This commit is contained in:
parent
88ec02a61c
commit
b742230dbb
6 changed files with 1584 additions and 34 deletions
68
src/pr/pr.rs
68
src/pr/pr.rs
|
@ -26,6 +26,7 @@ use quick_error::ResultExt;
|
||||||
use std::convert::From;
|
use std::convert::From;
|
||||||
use getopts::HasArg;
|
use getopts::HasArg;
|
||||||
use getopts::Occur;
|
use getopts::Occur;
|
||||||
|
use std::num::ParseIntError;
|
||||||
|
|
||||||
static NAME: &str = "pr";
|
static NAME: &str = "pr";
|
||||||
static VERSION: &str = env!("CARGO_PKG_VERSION");
|
static VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||||
|
@ -73,6 +74,13 @@ struct ColumnModeOptions {
|
||||||
column_separator: String,
|
column_separator: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(PartialEq, Eq)]
|
||||||
|
enum PrintPageCommand {
|
||||||
|
Skip,
|
||||||
|
Abort,
|
||||||
|
Print,
|
||||||
|
}
|
||||||
|
|
||||||
impl AsRef<OutputOptions> for OutputOptions {
|
impl AsRef<OutputOptions> for OutputOptions {
|
||||||
fn as_ref(&self) -> &OutputOptions {
|
fn as_ref(&self) -> &OutputOptions {
|
||||||
self
|
self
|
||||||
|
@ -429,26 +437,37 @@ fn build_options(matches: &Matches, path: &String) -> Result<OutputOptions, PrEr
|
||||||
file_last_modified_time(path)
|
file_last_modified_time(path)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let invalid_pages_map = |i: Result<usize, ParseIntError>| {
|
||||||
|
let unparsed_value = matches.opt_str(PAGE_RANGE_OPTION).unwrap();
|
||||||
|
match i {
|
||||||
|
Ok(val) => Ok(val),
|
||||||
|
Err(_e) => Err(PrError::EncounteredErrors(format!("invalid --pages argument '{}'", unparsed_value)))
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
let start_page = match matches.opt_str(PAGE_RANGE_OPTION).map(|i| {
|
let start_page = match matches.opt_str(PAGE_RANGE_OPTION).map(|i| {
|
||||||
let x: Vec<&str> = i.split(":").collect();
|
let x: Vec<&str> = i.split(":").collect();
|
||||||
x[0].parse::<usize>()
|
x[0].parse::<usize>()
|
||||||
}) {
|
}).map(invalid_pages_map)
|
||||||
Some(res) => Some(res?),
|
{
|
||||||
_ => None
|
Some(res) => Some(res?),
|
||||||
};
|
_ => None
|
||||||
|
};
|
||||||
|
|
||||||
let end_page = match matches.opt_str(PAGE_RANGE_OPTION)
|
let end_page = match matches.opt_str(PAGE_RANGE_OPTION)
|
||||||
.filter(|i| i.contains(":"))
|
.filter(|i| i.contains(":"))
|
||||||
.map(|i| {
|
.map(|i| {
|
||||||
let x: Vec<&str> = i.split(":").collect();
|
let x: Vec<&str> = i.split(":").collect();
|
||||||
x[1].parse::<usize>()
|
x[1].parse::<usize>()
|
||||||
}) {
|
})
|
||||||
Some(res) => Some(res?),
|
.map(invalid_pages_map)
|
||||||
_ => None
|
{
|
||||||
};
|
Some(res) => Some(res?),
|
||||||
|
_ => None
|
||||||
|
};
|
||||||
|
|
||||||
if start_page.is_some() && end_page.is_some() && start_page.unwrap() > end_page.unwrap() {
|
if start_page.is_some() && end_page.is_some() && start_page.unwrap() > end_page.unwrap() {
|
||||||
return Err(PrError::EncounteredErrors(format!("invalid page range ‘{}:{}’", start_page.unwrap(), end_page.unwrap())));
|
return Err(PrError::EncounteredErrors(format!("invalid --pages argument '{}:{}'", start_page.unwrap(), end_page.unwrap())));
|
||||||
}
|
}
|
||||||
|
|
||||||
let page_length = match matches.opt_str(PAGE_LENGTH_OPTION).map(|i| {
|
let page_length = match matches.opt_str(PAGE_LENGTH_OPTION).map(|i| {
|
||||||
|
@ -548,6 +567,8 @@ fn pr(path: &str, options: &OutputOptions) -> Result<i32, PrError> {
|
||||||
let mut page: usize = 0;
|
let mut page: usize = 0;
|
||||||
let mut buffered_content: Vec<String> = Vec::new();
|
let mut buffered_content: Vec<String> = Vec::new();
|
||||||
let read_lines_per_page = options.lines_to_read_for_page();
|
let read_lines_per_page = options.lines_to_read_for_page();
|
||||||
|
let start_page = options.as_ref().start_page.as_ref();
|
||||||
|
let last_page = options.as_ref().end_page.as_ref();
|
||||||
let mut line_number = options.as_ref()
|
let mut line_number = options.as_ref()
|
||||||
.number
|
.number
|
||||||
.as_ref()
|
.as_ref()
|
||||||
|
@ -557,11 +578,14 @@ fn pr(path: &str, options: &OutputOptions) -> Result<i32, PrError> {
|
||||||
if i == read_lines_per_page {
|
if i == read_lines_per_page {
|
||||||
page = page + 1;
|
page = page + 1;
|
||||||
i = 0;
|
i = 0;
|
||||||
if !_is_within_page_range(options, &page) {
|
|
||||||
|
let cmd = _get_print_command(start_page, last_page, &page);
|
||||||
|
if cmd == PrintPageCommand::Print {
|
||||||
|
line_number += print_page(&buffered_content, options, &page, &line_number)?;
|
||||||
|
buffered_content = Vec::new();
|
||||||
|
} else if cmd == PrintPageCommand::Abort {
|
||||||
return Ok(0);
|
return Ok(0);
|
||||||
}
|
}
|
||||||
line_number += print_page(&buffered_content, options, &page, &line_number)?;
|
|
||||||
buffered_content = Vec::new();
|
|
||||||
}
|
}
|
||||||
buffered_content.push(line?);
|
buffered_content.push(line?);
|
||||||
i = i + 1;
|
i = i + 1;
|
||||||
|
@ -569,19 +593,27 @@ fn pr(path: &str, options: &OutputOptions) -> Result<i32, PrError> {
|
||||||
|
|
||||||
if i != 0 {
|
if i != 0 {
|
||||||
page = page + 1;
|
page = page + 1;
|
||||||
if !_is_within_page_range(options, &page) {
|
let cmd = _get_print_command(start_page, last_page, &page);
|
||||||
|
if cmd == PrintPageCommand::Print {
|
||||||
|
print_page(&buffered_content, options, &page, &line_number)?;
|
||||||
|
} else if cmd == PrintPageCommand::Abort {
|
||||||
return Ok(0);
|
return Ok(0);
|
||||||
}
|
}
|
||||||
print_page(&buffered_content, options, &page, &line_number)?;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return Ok(0);
|
return Ok(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn _is_within_page_range(options: &OutputOptions, page: &usize) -> bool {
|
fn _get_print_command(start_page: Option<&usize>, last_page: Option<&usize>, page: &usize) -> PrintPageCommand {
|
||||||
let start_page = options.as_ref().start_page.as_ref();
|
let below_page_range = start_page.is_some() && page < start_page.unwrap();
|
||||||
let last_page = options.as_ref().end_page.as_ref();
|
let is_within_page_range = (start_page.is_none() || page >= start_page.unwrap())
|
||||||
(start_page.is_none() || page >= start_page.unwrap()) && (last_page.is_none() || page <= last_page.unwrap())
|
&& (last_page.is_none() || page <= last_page.unwrap());
|
||||||
|
if below_page_range {
|
||||||
|
return PrintPageCommand::Skip;
|
||||||
|
} else if is_within_page_range {
|
||||||
|
return PrintPageCommand::Print;
|
||||||
|
}
|
||||||
|
return PrintPageCommand::Abort;
|
||||||
}
|
}
|
||||||
|
|
||||||
fn print_page(lines: &Vec<String>, options: &OutputOptions, page: &usize, line_number: &usize) -> Result<usize, Error> {
|
fn print_page(lines: &Vec<String>, options: &OutputOptions, page: &usize, line_number: &usize) -> Result<usize, Error> {
|
||||||
|
|
|
@ -129,10 +129,10 @@ impl CmdResult {
|
||||||
}
|
}
|
||||||
/// like stdout_is_fixture(...), but replaces the data in fixture file based on values provided in template_vars
|
/// like stdout_is_fixture(...), but replaces the data in fixture file based on values provided in template_vars
|
||||||
/// command output
|
/// command output
|
||||||
pub fn stdout_is_templated_fixture<T: AsRef<OsStr>>(&self, file_rel_path: T, template_vars: Vec<(String, String)>) -> Box<&CmdResult> {
|
pub fn stdout_is_templated_fixture<T: AsRef<OsStr>>(&self, file_rel_path: T, template_vars: Vec<(&String, &String)>) -> Box<&CmdResult> {
|
||||||
let mut contents = read_scenario_fixture(&self.tmpd, file_rel_path);
|
let mut contents = read_scenario_fixture(&self.tmpd, file_rel_path);
|
||||||
for kv in template_vars {
|
for kv in template_vars {
|
||||||
contents = contents.replace(&kv.0, &kv.1);
|
contents = contents.replace(kv.0, kv.1);
|
||||||
}
|
}
|
||||||
self.stdout_is(contents)
|
self.stdout_is(contents)
|
||||||
}
|
}
|
||||||
|
|
1000
tests/fixtures/pr/test.log
vendored
Normal file
1000
tests/fixtures/pr/test.log
vendored
Normal file
File diff suppressed because it is too large
Load diff
264
tests/fixtures/pr/test_page_range_1.log.expected
vendored
Normal file
264
tests/fixtures/pr/test_page_range_1.log.expected
vendored
Normal file
|
@ -0,0 +1,264 @@
|
||||||
|
|
||||||
|
|
||||||
|
{last_modified_time} test.log Page 15
|
||||||
|
|
||||||
|
|
||||||
|
ntation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:56.558 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:56.705 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:56.706 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:56.706 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:56.854 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:56.855 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:56.856 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:57.002 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:57.003 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:57.003 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:57.152 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:57.154 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:57.154 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:57.302 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:57.304 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:57.304 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:57.449 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:57.451 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:57.451 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:57.600 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:57.601 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:57.602 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:57.624 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:57.624 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:57.749 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:57.750 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:57.751 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:57.896 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:57.897 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:57.897 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:58.045 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:58.047 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:58.047 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:58.193 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:58.195 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:58.195 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:58.342 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:58.343 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:58.344 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:58.491 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:58.493 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:58.494 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:58.640 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:58.642 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:58.642 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:58.805 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:58.806 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:58.806 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:58.958 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:58.959 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:58.960 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:59.155 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:59.157 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:59.159 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:59.352 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{last_modified_time} test.log Page 16
|
||||||
|
|
||||||
|
|
||||||
|
Mon Dec 10 12:06:28.770 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/ProfileID'
|
||||||
|
Mon Dec 10 12:06:28.770 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/WEP40'
|
||||||
|
Mon Dec 10 12:06:28.770 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/SSID_STR'
|
||||||
|
Mon Dec 10 12:06:28.770 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/AirPlay'
|
||||||
|
Mon Dec 10 12:06:28.770 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/AutoJoinTimestamp'
|
||||||
|
Mon Dec 10 12:06:28.770 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/BSSID'
|
||||||
|
Mon Dec 10 12:06:28.770 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/SSID'
|
||||||
|
Mon Dec 10 12:06:28.770 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/CHANNEL'
|
||||||
|
Mon Dec 10 12:06:28.770 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/Busy'
|
||||||
|
Mon Dec 10 12:06:28.770 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/Power Status'
|
||||||
|
Mon Dec 10 12:06:28.770 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/WEPOPENSYSTEM'
|
||||||
|
Mon Dec 10 12:06:28.770 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/CachedScanRecord'
|
||||||
|
Mon Dec 10 12:06:28.770 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/UserMode8021X'
|
||||||
|
Mon Dec 10 12:06:28.771 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/BusyUI'
|
||||||
|
Mon Dec 10 12:06:28.945 Info: <airportd[160]> INTERFACE STATE INFO request received from pid 362 (sharingd)
|
||||||
|
Mon Dec 10 12:06:28.946 Info: <airportd[160]> -[CWXPCInterfaceContext __copyMACAddressForInterface:]: <awdl0> MAC address: <82cd0ac3 bf73>
|
||||||
|
Mon Dec 10 12:06:30.064 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:30.151 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:30.151 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:31.137 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:31.138 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:31.832 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:31.832 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:48.742 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:48.742 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:49.121 P2P: <airportd[160]> _terminateGroupOwnerTimer: Terminate group owner timer notification received.
|
||||||
|
Mon Dec 10 12:06:49.267 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:49.267 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:49.793 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:49.793 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:50.931 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_REALTIME_MODE_END (awdl0)
|
||||||
|
Mon Dec 10 12:06:50.931 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_STATISTICS (awdl0)
|
||||||
|
Mon Dec 10 12:06:50.932 Info: <Wi-Fi Menu Extra[335]> AWDL real time mode ended
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> __BluetoothCoexHandleUpdateForNode: <en0> Handle Bluetooth Coex: FrequencyBand <2>, Bluetooth Bandwidth Utilization <3>, Clamshell Mode <0>
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexSetProfile: <en0> profile for band 2.4GHz didn't change
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexSetProfile: <en0> profile for band 5GHz didn't change
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexHandle_ApplyPolicy: <en0> Bluetooth Coex: band = 0x2
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexHandle_ApplyPolicy: <en0> Bluetooth Coex: hosting AP = NO, assoc as STA = YES, assoced in 2.4GHz = NO
|
||||||
|
Mon Dec 10 12:06:50.945 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexHandle_ReconfigureAntennas: <en0> Bluetooth Coex: band = 2
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexGetCurrentBssidPhyMode: <en0> Bluetooth Coex: Active PHY Mode 16. PHY Mode
|
||||||
|
Mon Dec 10 12:06:50.945 <CFBasicHash 0x7fc3fcd05ae0 [0x7fff9da548e0]>{type = mutable dict, count = 2,
|
||||||
|
Mon Dec 10 12:06:50.945 entries =>
|
||||||
|
Mon Dec 10 12:06:50.945 0 : <CFString 0x1042fdbe0 [0x7fff9da548e0]>{contents = "PHYMODE_ACTIVE"} = <CFNumber 0x27c86f4fab1424ff [0x7fff9da548e0]>{value = +16, type = kCFNumberSInt32Type}
|
||||||
|
Mon Dec 10 12:06:50.945 1 : <CFString 0x104301b60 [0x7fff9da548e0]>{contents = "PHYMODE_SUPPORTED"} = <CFNumber 0x27c86f4fab14abff [0x7fff9da548e0]>{value = +159, type = kCFNumberSInt32Type}
|
||||||
|
Mon Dec 10 12:06:50.945 }
|
||||||
|
Mon Dec 10 12:06:50.945
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexHandle_ReconfigureAntennas: <en0> Bluetooth Coex: PHY mode: <10> 5GHz: YES
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexHandle_ReconfigureAntennas: <en0> MCS index set size = 16, NSS = 2SS, need to re-assoc = YES
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexHandle_ReconfigureAntennas: <en0> Bluetooth Coex: 11bg only = NO, BT on = YES, # HIDs = 0, # A2DP = 0, # SCO = 0, fallback = normal -> Middle Chain is ON
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexSettingPerChainPower: Chain Power Setting does not need to be updated
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexHandle_ReconfigureAntennas: <en0> Skipping REASSOC - The # of chains did not change.
|
||||||
|
Mon Dec 10 12:06:50.945 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 12:06:50.945 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_REALTIME_MODE_END (awdl0)
|
||||||
|
Mon Dec 10 12:06:50.945 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> __BluetoothCoexHandleUpdateForNode: <en0> Handle Bluetooth Coex: FrequencyBand <2>, Bluetooth Bandwidth Utilization <3>, Clamshell Mode <0>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{last_modified_time} test.log Page 17
|
||||||
|
|
||||||
|
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexSetProfile: <en0> profile for band 2.4GHz didn't change
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexSetProfile: <en0> profile for band 5GHz didn't change
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexHandle_ApplyPolicy: <en0> Bluetooth Coex: band = 0x2
|
||||||
|
Mon Dec 10 12:06:50.945 Info: <Wi-Fi Menu Extra[335]> AWDL real time mode ended
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexHandle_ApplyPolicy: <en0> Bluetooth Coex: hosting AP = NO, assoc as STA = YES, assoced in 2.4GHz = NO
|
||||||
|
Mon Dec 10 12:06:50.946 BTC: <airportd[160]> BluetoothCoexHandle_ReconfigureAntennas: <en0> Bluetooth Coex: band = 2
|
||||||
|
Mon Dec 10 12:06:50.946 BTC: <airportd[160]> BluetoothCoexGetCurrentBssidPhyMode: <en0> Bluetooth Coex: Active PHY Mode 16. PHY Mode
|
||||||
|
Mon Dec 10 12:06:50.946 <CFBasicHash 0x7fc3ff5389a0 [0x7fff9da548e0]>{type = mutable dict, count = 2,
|
||||||
|
Mon Dec 10 12:06:50.946 entries =>
|
||||||
|
Mon Dec 10 12:06:50.946 0 : <CFString 0x1042fdbe0 [0x7fff9da548e0]>{contents = "PHYMODE_ACTIVE"} = <CFNumber 0x27c86f4fab1424ff [0x7fff9da548e0]>{value = +16, type = kCFNumberSInt32Type}
|
||||||
|
Mon Dec 10 12:06:50.946 1 : <CFString 0x104301b60 [0x7fff9da548e0]>{contents = "PHYMODE_SUPPORTED"} = <CFNumber 0x27c86f4fab14abff [0x7fff9da548e0]>{value = +159, type = kCFNumberSInt32Type}
|
||||||
|
Mon Dec 10 12:06:50.946 }
|
||||||
|
Mon Dec 10 12:06:50.946
|
||||||
|
Mon Dec 10 12:06:50.946 BTC: <airportd[160]> BluetoothCoexHandle_ReconfigureAntennas: <en0> Bluetooth Coex: PHY mode: <10> 5GHz: YES
|
||||||
|
Mon Dec 10 12:06:50.946 BTC: <airportd[160]> BluetoothCoexHandle_ReconfigureAntennas: <en0> MCS index set size = 16, NSS = 2SS, need to re-assoc = YES
|
||||||
|
Mon Dec 10 12:06:50.946 BTC: <airportd[160]> BluetoothCoexHandle_ReconfigureAntennas: <en0> Bluetooth Coex: 11bg only = NO, BT on = YES, # HIDs = 0, # A2DP = 0, # SCO = 0, fallback = normal -> Middle Chain is ON
|
||||||
|
Mon Dec 10 12:06:50.946 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 12:06:50.946 BTC: <airportd[160]> BluetoothCoexSettingPerChainPower: Chain Power Setting does not need to be updated
|
||||||
|
Mon Dec 10 12:06:50.946 BTC: <airportd[160]> BluetoothCoexHandle_ReconfigureAntennas: <en0> Skipping REASSOC - The # of chains did not change.
|
||||||
|
Mon Dec 10 12:06:50.946 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:50.946 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:50.946 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 12:06:50.946 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:50.946 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:50.946 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:50.946 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_SYNC_STATE_CHANGED (awdl0)
|
||||||
|
Mon Dec 10 12:06:50.947 Info: <airportd[160]> AWDL ended
|
||||||
|
Mon Dec 10 12:06:50.951 Info: <airportd[160]> -[CWXPCInterfaceContext __submitAWDLUsageMetric:duration:]: AWDL usage metric data: CWAWDMetricAwdlUsageData: selfInfraChannel 40, peerInfraChannel 0, numOfPeers 6. Keys: Info: <airportd[160]> -[CWAWDManager submitMetric:]: submitting metric id 0x90013
|
||||||
|
Mon Dec 10 12:06:50.952 Info: <airportd[160]> INTERFACE STATE INFO request received from pid 362 (sharingd)
|
||||||
|
Mon Dec 10 12:06:50.952 Info: <airportd[160]> -[CWXPCInterfaceContext __copyMACAddressForInterface:]: <awdl0> MAC address: <82cd0ac3 bf73>
|
||||||
|
Mon Dec 10 12:06:50.953 Roam: <airportd[160]> ROAMING PROFILES updated to AC POWER for 2.4GHz on en0
|
||||||
|
Mon Dec 10 12:06:50.953 Roam: <airportd[160]> ROAMING PROFILES updated to AC POWER for 5GHz on en0
|
||||||
|
Mon Dec 10 12:06:53.680 Info: <airportd[160]> -[CWXPCSubsystem handleDeviceCountMetricQuery:]_block_invoke: DeviceCount metric data: CWAWDMetricDeviceCountData: timeSinceBoot: 1515466.360642, deviceCount: 1
|
||||||
|
Mon Dec 10 12:06:53.684 Info: <airportd[160]> -[CWXPCSubsystem handleNetworkPrefsMetricQuery:]: NetworkPrefs metric data: CWAWDMetricNetworkPrefsData: preferred 15 hidden 0 open 1 wep 0 wpa 12 eap 2
|
||||||
|
Mon Dec 10 12:06:53.684 Info: <airportd[160]> -[CWAWDManager submitMetric:]: submitting metric id 0x90004
|
||||||
|
Mon Dec 10 12:06:53.852 Info: <airportd[160]> -[CWAWDManager submitMetric:]: submitting metric id 0x90001
|
||||||
|
Mon Dec 10 12:06:53.852 Info: <airportd[160]> -[CWAWDManager submitMetric:]: submitting metric id 0x9000d
|
||||||
|
Mon Dec 10 12:06:53.852 Info: <airportd[160]> -[CWAWDManager submitMetric:]: submitting metric id 0x9000b
|
||||||
|
Mon Dec 10 12:12:03.594 Driver Event: <airportd[160]> _bsd_80211_event_callback: LINK_QUALITY (en0)
|
||||||
|
Mon Dec 10 12:12:03.594 Info: <airportd[160]> _bsd_80211_event_callback: <en0> link quality: RSSI=-57 dBm TxRate=216 Mbps
|
||||||
|
Mon Dec 10 12:12:03.595 Info: <Wi-Fi Menu Extra[335]> link quality changed
|
||||||
|
Mon Dec 10 12:12:09.598 Driver Event: <airportd[160]> _bsd_80211_event_callback: LINK_QUALITY (en0)
|
||||||
|
Mon Dec 10 12:12:09.598 Info: <airportd[160]> _bsd_80211_event_callback: <en0> link quality: RSSI=-58 dBm TxRate=270 Mbps
|
||||||
|
Mon Dec 10 12:12:09.599 Info: <Wi-Fi Menu Extra[335]> link quality changed
|
||||||
|
Mon Dec 10 12:12:56.625 Driver Event: <airportd[160]> _bsd_80211_event_callback: LINK_QUALITY (en0)
|
||||||
|
Mon Dec 10 12:12:56.625 Info: <airportd[160]> _bsd_80211_event_callback: <en0> link quality: RSSI=-58 dBm TxRate=216 Mbps
|
||||||
|
Mon Dec 10 12:12:56.625 Info: <Wi-Fi Menu Extra[335]> link quality changed
|
||||||
|
Mon Dec 10 12:13:01.625 Driver Event: <airportd[160]> _bsd_80211_event_callback: LINK_QUALITY (en0)
|
||||||
|
Mon Dec 10 12:13:01.625 Info: <airportd[160]> _bsd_80211_event_callback: <en0> link quality: RSSI=-58 dBm TxRate=243 Mbps
|
||||||
|
Mon Dec 10 12:13:01.626 Info: <Wi-Fi Menu Extra[335]> link quality changed
|
||||||
|
Mon Dec 10 12:13:06.628 Driver Event: <airportd[160]> _bsd_80211_event_callback: LINK_QUALITY (en0)
|
||||||
|
Mon Dec 10 12:13:06.628 Info: <airportd[160]> _bsd_80211_event_callback: <en0> link quality: RSSI=-58 dBm TxRate=216 Mbps
|
||||||
|
Mon Dec 10 12:13:06.628 Info: <Wi-Fi Menu Extra[335]> link quality changed
|
||||||
|
Mon Dec 10 12:13:27.639 Driver Event: <airportd[160]> _bsd_80211_event_callback: LINK_QUALITY (en0)
|
||||||
|
Mon Dec 10 12:13:27.639 Info: <airportd[160]> _bsd_80211_event_callback: <en0> link quality: RSSI=-57 dBm TxRate=243 Mbps
|
||||||
|
Mon Dec 10 12:13:27.640 Info: <Wi-Fi Menu Extra[335]> link quality changed
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{last_modified_time} test.log Page 18
|
||||||
|
|
||||||
|
|
||||||
|
Mon Dec 10 12:14:46.658 Info: <airportd[160]> SCAN request received from pid 92 (locationd) with priority 2
|
||||||
|
Mon Dec 10 12:14:46.902 Driver Event: <airportd[160]> _bsd_80211_event_callback: SCAN_CACHE_UPDATED (en0)
|
||||||
|
Mon Dec 10 12:14:46.905 Info: <airportd[160]> QUERY SCAN CACHE request received from pid 92 (locationd)
|
||||||
|
Mon Dec 10 12:14:46.906 AutoJoin: <airportd[160]> Successful cache-assisted scan request for locationd with channels {(
|
||||||
|
Mon Dec 10 12:14:46.906 <CWChannel: 0x7fc3ff54e6f0> [channelNumber=1(2GHz), channelWidth={20MHz}, active],
|
||||||
|
Mon Dec 10 12:14:46.906 <CWChannel: 0x7fc3ff525b90> [channelNumber=2(2GHz), channelWidth={20MHz}, active],
|
||||||
|
Mon Dec 10 12:14:46.906 <CWChannel: 0x7fc3ff50fff0> [channelNumber=3(2GHz), channelWidth={20MHz}, active],
|
||||||
|
Mon Dec 10 12:14:46.906 <CWChannel: 0x7fc3ff506ba0> [channelNumber=4(2GHz), channelWidth={20MHz}, active],
|
||||||
|
Mon Dec 10 12:14:46.906 <CWChannel: 0x7fc3ff502b10> [channelNumber=5(2GHz), channelWidth={20MHz}, active],
|
||||||
|
Mon Dec 10 12:14:46.906 <CWChannel: 0x7fc3ff5389d0> [channelNumber=6(2GHz), channelWidth={20MHz}, active]
|
||||||
|
Mon Dec 10 12:14:46.906 )} took 0.2478 seconds, returned 13 results
|
||||||
|
Mon Dec 10 12:14:46.906 Info: <Wi-Fi Menu Extra[335]> scan cache updated
|
||||||
|
Mon Dec 10 12:14:47.158 Driver Event: <airportd[160]> _bsd_80211_event_callback: SCAN_CACHE_UPDATED (en0)
|
||||||
|
Mon Dec 10 12:14:47.160 AutoJoin: <airportd[160]> Successful cache-assisted scan request for locationd with channels {(
|
||||||
|
Mon Dec 10 12:14:47.160 <CWChannel: 0x7fc3ff55aa40> [channelNumber=7(2GHz), channelWidth={20MHz}, active],
|
||||||
|
Mon Dec 10 12:14:47.160 <CWChannel: 0x7fc3ff525af0> [channelNumber=8(2GHz), channelWidth={20MHz}, active],
|
||||||
|
Mon Dec 10 12:14:47.160 <CWChannel: 0x7fc3ff555fa0> [channelNumber=9(2GHz), channelWidth={20MHz}, active],
|
||||||
|
Mon Dec 10 12:14:47.160 <CWChannel: 0x7fc3ff5198e0> [channelNumber=10(2GHz), channelWidth={20MHz}, active],
|
||||||
|
Mon Dec 10 12:14:47.160 <CWChannel: 0x7fc3ff53a7b0> [channelNumber=11(2GHz), channelWidth={20MHz}, active],
|
||||||
|
Mon Dec 10 12:14:47.160 <CWChannel: 0x7fc3ff528060> [channelNumber=12(2GHz), channelWidth={20MHz}, active]
|
||||||
|
Mon Dec 10 12:14:47.160 )} took 0.2532 seconds, returned 4 results
|
||||||
|
Mon Dec 10 12:14:47.161 Info: <airportd[160]> QUERY SCAN CACHE request received from pid 92 (locationd)
|
||||||
|
Mon Dec 10 12:14:47.433 Driver Event: <airportd[160]> _bsd_80211_event_callback: SCAN_CACHE_UPDATED (en0)
|
||||||
|
Mon Dec 10 12:14:47.436 Info: <airportd[160]> QUERY SCAN CACHE request received from pid 92 (locationd)
|
||||||
|
Mon Dec 10 12:14:47.437 AutoJoin: <airportd[160]> Successful cache-assisted scan request for locationd with channels {(
|
||||||
|
Mon Dec 10 12:14:47.437 <CWChannel: 0x7fc3ff556320> [channelNumber=13(2GHz), channelWidth={20MHz}, active],
|
||||||
|
Mon Dec 10 12:14:47.437 <CWChannel: 0x7fc3ff54cf20> [channelNumber=36(5GHz), channelWidth={40MHz(+1)}, active],
|
||||||
|
Mon Dec 10 12:14:47.437 <CWChannel: 0x7fc3ff522290> [channelNumber=40(5GHz), channelWidth={40MHz(-1)}, active],
|
||||||
|
Mon Dec 10 12:14:47.437 <CWChannel: 0x7fc3ff50c340> [channelNumber=44(5GHz), channelWidth={40MHz(+1)}, active],
|
||||||
|
Mon Dec 10 12:14:47.437 <CWChannel: 0x7fc3ff5036d0> [channelNumber=48(5GHz), channelWidth={40MHz(-1)}, active],
|
||||||
|
Mon Dec 10 12:14:47.437 <CWChannel: 0x7fc3ff54d880> [channelNumber=149(5GHz), channelWidth={20MHz}, active]
|
||||||
|
Mon Dec 10 12:14:47.437 )} took 0.2763 seconds, returned 11 results
|
||||||
|
Mon Dec 10 12:14:47.778 Driver Event: <airportd[160]> _bsd_80211_event_callback: SCAN_CACHE_UPDATED (en0)
|
||||||
|
Mon Dec 10 12:14:47.781 Info: <airportd[160]> QUERY SCAN CACHE request received from pid 92 (locationd)
|
||||||
|
Mon Dec 10 12:14:47.782 AutoJoin: <airportd[160]> Successful cache-assisted scan request for locationd with channels {(
|
||||||
|
Mon Dec 10 12:14:47.782 <CWChannel: 0x7fc3ff502260> [channelNumber=153(5GHz), channelWidth={40MHz(-1)}, active],
|
||||||
|
Mon Dec 10 12:14:47.782 <CWChannel: 0x7fc3ff50f420> [channelNumber=157(5GHz), channelWidth={20MHz}, active],
|
||||||
|
Mon Dec 10 12:14:47.782 <CWChannel: 0x7fc3ff51e270> [channelNumber=161(5GHz), channelWidth={40MHz(-1)}, active],
|
||||||
|
Mon Dec 10 12:14:47.782 <CWChannel: 0x7fc3ff513720> [channelNumber=165(5GHz), channelWidth={20MHz}, active],
|
||||||
|
Mon Dec 10 12:14:47.782 <CWChannel: 0x7fc3ff505b60> [channelNumber=52(5GHz), channelWidth={40MHz(+1)}, DFS],
|
||||||
|
Mon Dec 10 12:14:47.782 <CWChannel: 0x7fc3ff54f390> [channelNumber=56(5GHz), channelWidth={40MHz(-1)}, DFS]
|
||||||
|
Mon Dec 10 12:14:47.782 )} took 0.3436 seconds, returned 9 results
|
||||||
|
Mon Dec 10 12:14:48.052 Driver Event: <airportd[160]> _bsd_80211_event_callback: SCAN_CACHE_UPDATED (en0)
|
||||||
|
Mon Dec 10 12:14:48.055 AutoJoin: <airportd[160]> Successful cache-assisted scan request for locationd with channels {(
|
||||||
|
Mon Dec 10 12:14:48.055 <CWChannel: 0x7fc3ff550d00> [channelNumber=60(5GHz), channelWidth={40MHz(+1)}, DFS],
|
||||||
|
Mon Dec 10 12:14:48.055 <CWChannel: 0x7fc3ff54fca0> [channelNumber=64(5GHz), channelWidth={40MHz(-1)}, DFS]
|
||||||
|
Mon Dec 10 12:14:48.055 )} took 0.2714 seconds, returned 6 results
|
||||||
|
Mon Dec 10 12:14:48.055 Info: <airportd[160]> QUERY SCAN CACHE request received from pid 92 (locationd)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
200
tests/fixtures/pr/test_page_range_2.log.expected
vendored
Normal file
200
tests/fixtures/pr/test_page_range_2.log.expected
vendored
Normal file
|
@ -0,0 +1,200 @@
|
||||||
|
|
||||||
|
|
||||||
|
{last_modified_time} test.log Page 15
|
||||||
|
|
||||||
|
|
||||||
|
ntation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:56.558 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:56.705 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:56.706 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:56.706 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:56.854 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:56.855 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:56.856 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:57.002 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:57.003 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:57.003 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:57.152 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:57.154 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:57.154 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:57.302 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:57.304 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:57.304 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:57.449 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:57.451 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:57.451 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:57.600 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:57.601 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:57.602 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:57.624 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:57.624 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:57.749 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:57.750 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:57.751 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:57.896 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:57.897 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:57.897 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:58.045 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:58.047 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:58.047 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:58.193 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:58.195 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:58.195 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:58.342 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:58.343 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:58.344 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:58.491 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:58.493 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:58.494 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:58.640 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:58.642 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:58.642 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:58.805 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:58.806 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:58.806 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:58.958 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:58.959 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:58.960 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:59.155 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
Mon Dec 10 11:42:59.157 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 11:42:59.159 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 11:42:59.352 Info: <Wi-Fi Menu Extra[335]> 802.1X changed
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{last_modified_time} test.log Page 16
|
||||||
|
|
||||||
|
|
||||||
|
Mon Dec 10 12:06:28.770 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/ProfileID'
|
||||||
|
Mon Dec 10 12:06:28.770 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/WEP40'
|
||||||
|
Mon Dec 10 12:06:28.770 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/SSID_STR'
|
||||||
|
Mon Dec 10 12:06:28.770 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/AirPlay'
|
||||||
|
Mon Dec 10 12:06:28.770 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/AutoJoinTimestamp'
|
||||||
|
Mon Dec 10 12:06:28.770 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/BSSID'
|
||||||
|
Mon Dec 10 12:06:28.770 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/SSID'
|
||||||
|
Mon Dec 10 12:06:28.770 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/CHANNEL'
|
||||||
|
Mon Dec 10 12:06:28.770 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/Busy'
|
||||||
|
Mon Dec 10 12:06:28.770 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/Power Status'
|
||||||
|
Mon Dec 10 12:06:28.770 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/WEPOPENSYSTEM'
|
||||||
|
Mon Dec 10 12:06:28.770 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/CachedScanRecord'
|
||||||
|
Mon Dec 10 12:06:28.770 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/UserMode8021X'
|
||||||
|
Mon Dec 10 12:06:28.771 SC: <airportd[160]> airportdProcessSystemConfigurationEvent: Processing 'State:/Network/Interface/en0/AirPort/BusyUI'
|
||||||
|
Mon Dec 10 12:06:28.945 Info: <airportd[160]> INTERFACE STATE INFO request received from pid 362 (sharingd)
|
||||||
|
Mon Dec 10 12:06:28.946 Info: <airportd[160]> -[CWXPCInterfaceContext __copyMACAddressForInterface:]: <awdl0> MAC address: <82cd0ac3 bf73>
|
||||||
|
Mon Dec 10 12:06:30.064 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:30.151 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:30.151 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:31.137 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:31.138 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:31.832 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:31.832 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:48.742 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:48.742 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:49.121 P2P: <airportd[160]> _terminateGroupOwnerTimer: Terminate group owner timer notification received.
|
||||||
|
Mon Dec 10 12:06:49.267 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:49.267 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:49.793 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:49.793 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:50.931 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_REALTIME_MODE_END (awdl0)
|
||||||
|
Mon Dec 10 12:06:50.931 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_STATISTICS (awdl0)
|
||||||
|
Mon Dec 10 12:06:50.932 Info: <Wi-Fi Menu Extra[335]> AWDL real time mode ended
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> __BluetoothCoexHandleUpdateForNode: <en0> Handle Bluetooth Coex: FrequencyBand <2>, Bluetooth Bandwidth Utilization <3>, Clamshell Mode <0>
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexSetProfile: <en0> profile for band 2.4GHz didn't change
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexSetProfile: <en0> profile for band 5GHz didn't change
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexHandle_ApplyPolicy: <en0> Bluetooth Coex: band = 0x2
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexHandle_ApplyPolicy: <en0> Bluetooth Coex: hosting AP = NO, assoc as STA = YES, assoced in 2.4GHz = NO
|
||||||
|
Mon Dec 10 12:06:50.945 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexHandle_ReconfigureAntennas: <en0> Bluetooth Coex: band = 2
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexGetCurrentBssidPhyMode: <en0> Bluetooth Coex: Active PHY Mode 16. PHY Mode
|
||||||
|
Mon Dec 10 12:06:50.945 <CFBasicHash 0x7fc3fcd05ae0 [0x7fff9da548e0]>{type = mutable dict, count = 2,
|
||||||
|
Mon Dec 10 12:06:50.945 entries =>
|
||||||
|
Mon Dec 10 12:06:50.945 0 : <CFString 0x1042fdbe0 [0x7fff9da548e0]>{contents = "PHYMODE_ACTIVE"} = <CFNumber 0x27c86f4fab1424ff [0x7fff9da548e0]>{value = +16, type = kCFNumberSInt32Type}
|
||||||
|
Mon Dec 10 12:06:50.945 1 : <CFString 0x104301b60 [0x7fff9da548e0]>{contents = "PHYMODE_SUPPORTED"} = <CFNumber 0x27c86f4fab14abff [0x7fff9da548e0]>{value = +159, type = kCFNumberSInt32Type}
|
||||||
|
Mon Dec 10 12:06:50.945 }
|
||||||
|
Mon Dec 10 12:06:50.945
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexHandle_ReconfigureAntennas: <en0> Bluetooth Coex: PHY mode: <10> 5GHz: YES
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexHandle_ReconfigureAntennas: <en0> MCS index set size = 16, NSS = 2SS, need to re-assoc = YES
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexHandle_ReconfigureAntennas: <en0> Bluetooth Coex: 11bg only = NO, BT on = YES, # HIDs = 0, # A2DP = 0, # SCO = 0, fallback = normal -> Middle Chain is ON
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexSettingPerChainPower: Chain Power Setting does not need to be updated
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexHandle_ReconfigureAntennas: <en0> Skipping REASSOC - The # of chains did not change.
|
||||||
|
Mon Dec 10 12:06:50.945 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 12:06:50.945 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_REALTIME_MODE_END (awdl0)
|
||||||
|
Mon Dec 10 12:06:50.945 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> __BluetoothCoexHandleUpdateForNode: <en0> Handle Bluetooth Coex: FrequencyBand <2>, Bluetooth Bandwidth Utilization <3>, Clamshell Mode <0>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{last_modified_time} test.log Page 17
|
||||||
|
|
||||||
|
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexSetProfile: <en0> profile for band 2.4GHz didn't change
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexSetProfile: <en0> profile for band 5GHz didn't change
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexHandle_ApplyPolicy: <en0> Bluetooth Coex: band = 0x2
|
||||||
|
Mon Dec 10 12:06:50.945 Info: <Wi-Fi Menu Extra[335]> AWDL real time mode ended
|
||||||
|
Mon Dec 10 12:06:50.945 BTC: <airportd[160]> BluetoothCoexHandle_ApplyPolicy: <en0> Bluetooth Coex: hosting AP = NO, assoc as STA = YES, assoced in 2.4GHz = NO
|
||||||
|
Mon Dec 10 12:06:50.946 BTC: <airportd[160]> BluetoothCoexHandle_ReconfigureAntennas: <en0> Bluetooth Coex: band = 2
|
||||||
|
Mon Dec 10 12:06:50.946 BTC: <airportd[160]> BluetoothCoexGetCurrentBssidPhyMode: <en0> Bluetooth Coex: Active PHY Mode 16. PHY Mode
|
||||||
|
Mon Dec 10 12:06:50.946 <CFBasicHash 0x7fc3ff5389a0 [0x7fff9da548e0]>{type = mutable dict, count = 2,
|
||||||
|
Mon Dec 10 12:06:50.946 entries =>
|
||||||
|
Mon Dec 10 12:06:50.946 0 : <CFString 0x1042fdbe0 [0x7fff9da548e0]>{contents = "PHYMODE_ACTIVE"} = <CFNumber 0x27c86f4fab1424ff [0x7fff9da548e0]>{value = +16, type = kCFNumberSInt32Type}
|
||||||
|
Mon Dec 10 12:06:50.946 1 : <CFString 0x104301b60 [0x7fff9da548e0]>{contents = "PHYMODE_SUPPORTED"} = <CFNumber 0x27c86f4fab14abff [0x7fff9da548e0]>{value = +159, type = kCFNumberSInt32Type}
|
||||||
|
Mon Dec 10 12:06:50.946 }
|
||||||
|
Mon Dec 10 12:06:50.946
|
||||||
|
Mon Dec 10 12:06:50.946 BTC: <airportd[160]> BluetoothCoexHandle_ReconfigureAntennas: <en0> Bluetooth Coex: PHY mode: <10> 5GHz: YES
|
||||||
|
Mon Dec 10 12:06:50.946 BTC: <airportd[160]> BluetoothCoexHandle_ReconfigureAntennas: <en0> MCS index set size = 16, NSS = 2SS, need to re-assoc = YES
|
||||||
|
Mon Dec 10 12:06:50.946 BTC: <airportd[160]> BluetoothCoexHandle_ReconfigureAntennas: <en0> Bluetooth Coex: 11bg only = NO, BT on = YES, # HIDs = 0, # A2DP = 0, # SCO = 0, fallback = normal -> Middle Chain is ON
|
||||||
|
Mon Dec 10 12:06:50.946 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: pppConnectionState 0
|
||||||
|
Mon Dec 10 12:06:50.946 BTC: <airportd[160]> BluetoothCoexSettingPerChainPower: Chain Power Setting does not need to be updated
|
||||||
|
Mon Dec 10 12:06:50.946 BTC: <airportd[160]> BluetoothCoexHandle_ReconfigureAntennas: <en0> Skipping REASSOC - The # of chains did not change.
|
||||||
|
Mon Dec 10 12:06:50.946 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:50.946 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:50.946 Info: <Wi-Fi Menu Extra[335]> -[AirPortExtraImplementation processAirPortStateChanges]: old state=4 bars, new state=4 bars
|
||||||
|
Mon Dec 10 12:06:50.946 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:50.946 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:50.946 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_PEER_PRESENCE (awdl0)
|
||||||
|
Mon Dec 10 12:06:50.946 Driver Event: <airportd[160]> _bsd_80211_event_callback: AWDL_SYNC_STATE_CHANGED (awdl0)
|
||||||
|
Mon Dec 10 12:06:50.947 Info: <airportd[160]> AWDL ended
|
||||||
|
Mon Dec 10 12:06:50.951 Info: <airportd[160]> -[CWXPCInterfaceContext __submitAWDLUsageMetric:duration:]: AWDL usage metric data: CWAWDMetricAwdlUsageData: selfInfraChannel 40, peerInfraChannel 0, numOfPeers 6. Keys: Info: <airportd[160]> -[CWAWDManager submitMetric:]: submitting metric id 0x90013
|
||||||
|
Mon Dec 10 12:06:50.952 Info: <airportd[160]> INTERFACE STATE INFO request received from pid 362 (sharingd)
|
||||||
|
Mon Dec 10 12:06:50.952 Info: <airportd[160]> -[CWXPCInterfaceContext __copyMACAddressForInterface:]: <awdl0> MAC address: <82cd0ac3 bf73>
|
||||||
|
Mon Dec 10 12:06:50.953 Roam: <airportd[160]> ROAMING PROFILES updated to AC POWER for 2.4GHz on en0
|
||||||
|
Mon Dec 10 12:06:50.953 Roam: <airportd[160]> ROAMING PROFILES updated to AC POWER for 5GHz on en0
|
||||||
|
Mon Dec 10 12:06:53.680 Info: <airportd[160]> -[CWXPCSubsystem handleDeviceCountMetricQuery:]_block_invoke: DeviceCount metric data: CWAWDMetricDeviceCountData: timeSinceBoot: 1515466.360642, deviceCount: 1
|
||||||
|
Mon Dec 10 12:06:53.684 Info: <airportd[160]> -[CWXPCSubsystem handleNetworkPrefsMetricQuery:]: NetworkPrefs metric data: CWAWDMetricNetworkPrefsData: preferred 15 hidden 0 open 1 wep 0 wpa 12 eap 2
|
||||||
|
Mon Dec 10 12:06:53.684 Info: <airportd[160]> -[CWAWDManager submitMetric:]: submitting metric id 0x90004
|
||||||
|
Mon Dec 10 12:06:53.852 Info: <airportd[160]> -[CWAWDManager submitMetric:]: submitting metric id 0x90001
|
||||||
|
Mon Dec 10 12:06:53.852 Info: <airportd[160]> -[CWAWDManager submitMetric:]: submitting metric id 0x9000d
|
||||||
|
Mon Dec 10 12:06:53.852 Info: <airportd[160]> -[CWAWDManager submitMetric:]: submitting metric id 0x9000b
|
||||||
|
Mon Dec 10 12:12:03.594 Driver Event: <airportd[160]> _bsd_80211_event_callback: LINK_QUALITY (en0)
|
||||||
|
Mon Dec 10 12:12:03.594 Info: <airportd[160]> _bsd_80211_event_callback: <en0> link quality: RSSI=-57 dBm TxRate=216 Mbps
|
||||||
|
Mon Dec 10 12:12:03.595 Info: <Wi-Fi Menu Extra[335]> link quality changed
|
||||||
|
Mon Dec 10 12:12:09.598 Driver Event: <airportd[160]> _bsd_80211_event_callback: LINK_QUALITY (en0)
|
||||||
|
Mon Dec 10 12:12:09.598 Info: <airportd[160]> _bsd_80211_event_callback: <en0> link quality: RSSI=-58 dBm TxRate=270 Mbps
|
||||||
|
Mon Dec 10 12:12:09.599 Info: <Wi-Fi Menu Extra[335]> link quality changed
|
||||||
|
Mon Dec 10 12:12:56.625 Driver Event: <airportd[160]> _bsd_80211_event_callback: LINK_QUALITY (en0)
|
||||||
|
Mon Dec 10 12:12:56.625 Info: <airportd[160]> _bsd_80211_event_callback: <en0> link quality: RSSI=-58 dBm TxRate=216 Mbps
|
||||||
|
Mon Dec 10 12:12:56.625 Info: <Wi-Fi Menu Extra[335]> link quality changed
|
||||||
|
Mon Dec 10 12:13:01.625 Driver Event: <airportd[160]> _bsd_80211_event_callback: LINK_QUALITY (en0)
|
||||||
|
Mon Dec 10 12:13:01.625 Info: <airportd[160]> _bsd_80211_event_callback: <en0> link quality: RSSI=-58 dBm TxRate=243 Mbps
|
||||||
|
Mon Dec 10 12:13:01.626 Info: <Wi-Fi Menu Extra[335]> link quality changed
|
||||||
|
Mon Dec 10 12:13:06.628 Driver Event: <airportd[160]> _bsd_80211_event_callback: LINK_QUALITY (en0)
|
||||||
|
Mon Dec 10 12:13:06.628 Info: <airportd[160]> _bsd_80211_event_callback: <en0> link quality: RSSI=-58 dBm TxRate=216 Mbps
|
||||||
|
Mon Dec 10 12:13:06.628 Info: <Wi-Fi Menu Extra[335]> link quality changed
|
||||||
|
Mon Dec 10 12:13:27.639 Driver Event: <airportd[160]> _bsd_80211_event_callback: LINK_QUALITY (en0)
|
||||||
|
Mon Dec 10 12:13:27.639 Info: <airportd[160]> _bsd_80211_event_callback: <en0> link quality: RSSI=-57 dBm TxRate=243 Mbps
|
||||||
|
Mon Dec 10 12:13:27.640 Info: <Wi-Fi Menu Extra[335]> link quality changed
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ fn test_without_any_options() {
|
||||||
scenario
|
scenario
|
||||||
.args(&[test_file_path])
|
.args(&[test_file_path])
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stdout_is_templated_fixture(expected_test_file_path, vec![("{last_modified_time}".to_string(), value)]);
|
.stdout_is_templated_fixture(expected_test_file_path, vec![(&"{last_modified_time}".to_string(), &value)]);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
@ -38,7 +38,7 @@ fn test_with_numbering_option() {
|
||||||
scenario
|
scenario
|
||||||
.args(&["-n", test_file_path])
|
.args(&["-n", test_file_path])
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stdout_is_templated_fixture(expected_test_file_path, vec![("{last_modified_time}".to_string(), value)]);
|
.stdout_is_templated_fixture(expected_test_file_path, vec![(&"{last_modified_time}".to_string(), &value)]);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
@ -50,7 +50,7 @@ fn test_with_numbering_option_when_content_is_less_than_page() {
|
||||||
scenario
|
scenario
|
||||||
.args(&["-n", test_file_path])
|
.args(&["-n", test_file_path])
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stdout_is_templated_fixture(expected_test_file_path, vec![("{last_modified_time}".to_string(), value)]);
|
.stdout_is_templated_fixture(expected_test_file_path, vec![(&"{last_modified_time}".to_string(), &value)]);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
@ -62,7 +62,7 @@ fn test_with_numbering_option_with_number_width() {
|
||||||
scenario
|
scenario
|
||||||
.args(&["-n", "2", test_file_path])
|
.args(&["-n", "2", test_file_path])
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stdout_is_templated_fixture(expected_test_file_path, vec![("{last_modified_time}".to_string(), value)]);
|
.stdout_is_templated_fixture(expected_test_file_path, vec![(&"{last_modified_time}".to_string(), &value)]);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
@ -76,8 +76,8 @@ fn test_with_header_option() {
|
||||||
.args(&["-h", header, test_file_path])
|
.args(&["-h", header, test_file_path])
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stdout_is_templated_fixture(expected_test_file_path, vec![
|
.stdout_is_templated_fixture(expected_test_file_path, vec![
|
||||||
("{last_modified_time}".to_string(), value),
|
(&"{last_modified_time}".to_string(), &value),
|
||||||
("{header}".to_string(), header.to_string())
|
(&"{header}".to_string(), &header.to_string())
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -92,8 +92,8 @@ fn test_with_long_header_option() {
|
||||||
.args(&["--header=new file", test_file_path])
|
.args(&["--header=new file", test_file_path])
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stdout_is_templated_fixture(expected_test_file_path, vec![
|
.stdout_is_templated_fixture(expected_test_file_path, vec![
|
||||||
("{last_modified_time}".to_string(), value),
|
(&"{last_modified_time}".to_string(), &value),
|
||||||
("{header}".to_string(), header.to_string())
|
(&"{header}".to_string(), &header.to_string())
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ fn test_with_double_space_option() {
|
||||||
.args(&["-d", test_file_path])
|
.args(&["-d", test_file_path])
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stdout_is_templated_fixture(expected_test_file_path, vec![
|
.stdout_is_templated_fixture(expected_test_file_path, vec![
|
||||||
("{last_modified_time}".to_string(), value),
|
(&"{last_modified_time}".to_string(), &value),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -121,7 +121,7 @@ fn test_with_long_double_space_option() {
|
||||||
.args(&["--double-space", test_file_path])
|
.args(&["--double-space", test_file_path])
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stdout_is_templated_fixture(expected_test_file_path, vec![
|
.stdout_is_templated_fixture(expected_test_file_path, vec![
|
||||||
("{last_modified_time}".to_string(), value),
|
(&"{last_modified_time}".to_string(), &value),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -135,7 +135,7 @@ fn test_with_first_line_number_option() {
|
||||||
.args(&["-N", "5", "-n", test_file_path])
|
.args(&["-N", "5", "-n", test_file_path])
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stdout_is_templated_fixture(expected_test_file_path, vec![
|
.stdout_is_templated_fixture(expected_test_file_path, vec![
|
||||||
("{last_modified_time}".to_string(), value),
|
(&"{last_modified_time}".to_string(), &value),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -149,7 +149,7 @@ fn test_with_first_line_number_long_option() {
|
||||||
.args(&["--first-line-number=5", "-n", test_file_path])
|
.args(&["--first-line-number=5", "-n", test_file_path])
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stdout_is_templated_fixture(expected_test_file_path, vec![
|
.stdout_is_templated_fixture(expected_test_file_path, vec![
|
||||||
("{last_modified_time}".to_string(), value),
|
(&"{last_modified_time}".to_string(), &value),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -163,7 +163,7 @@ fn test_with_number_option_with_custom_separator_char() {
|
||||||
.args(&["-nc", test_file_path])
|
.args(&["-nc", test_file_path])
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stdout_is_templated_fixture(expected_test_file_path, vec![
|
.stdout_is_templated_fixture(expected_test_file_path, vec![
|
||||||
("{last_modified_time}".to_string(), value),
|
(&"{last_modified_time}".to_string(), &value),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -177,6 +177,60 @@ fn test_with_number_option_with_custom_separator_char_and_width() {
|
||||||
.args(&["-nc1", test_file_path])
|
.args(&["-nc1", test_file_path])
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stdout_is_templated_fixture(expected_test_file_path, vec![
|
.stdout_is_templated_fixture(expected_test_file_path, vec![
|
||||||
("{last_modified_time}".to_string(), value),
|
(&"{last_modified_time}".to_string(), &value),
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_valid_page_ranges() {
|
||||||
|
let test_file_path = "test_num_page.log";
|
||||||
|
let mut scenario = new_ucmd!();
|
||||||
|
scenario
|
||||||
|
.args(&["--pages=20:5", test_file_path])
|
||||||
|
.fails()
|
||||||
|
.stderr_is("pr: invalid --pages argument '20:5'")
|
||||||
|
.stdout_is("");
|
||||||
|
new_ucmd!()
|
||||||
|
.args(&["--pages=1:5", test_file_path])
|
||||||
|
.succeeds();
|
||||||
|
new_ucmd!()
|
||||||
|
.args(&["--pages=1", test_file_path])
|
||||||
|
.succeeds();
|
||||||
|
new_ucmd!()
|
||||||
|
.args(&["--pages=-1:5", test_file_path])
|
||||||
|
.fails()
|
||||||
|
.stderr_is("pr: invalid --pages argument '-1:5'")
|
||||||
|
.stdout_is("");
|
||||||
|
new_ucmd!()
|
||||||
|
.args(&["--pages=1:-5", test_file_path])
|
||||||
|
.fails()
|
||||||
|
.stderr_is("pr: invalid --pages argument '1:-5'")
|
||||||
|
.stdout_is("");
|
||||||
|
new_ucmd!()
|
||||||
|
.args(&["--pages=5:1", test_file_path])
|
||||||
|
.fails()
|
||||||
|
.stderr_is("pr: invalid --pages argument '5:1'")
|
||||||
|
.stdout_is("");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_page_range() {
|
||||||
|
let test_file_path = "test.log";
|
||||||
|
let expected_test_file_path = "test_page_range_1.log.expected";
|
||||||
|
let expected_test_file_path1 = "test_page_range_2.log.expected";
|
||||||
|
let mut scenario = new_ucmd!();
|
||||||
|
let value = file_last_modified_time(&scenario, test_file_path);
|
||||||
|
scenario
|
||||||
|
.args(&["--pages=15", test_file_path])
|
||||||
|
.succeeds()
|
||||||
|
.stdout_is_templated_fixture(expected_test_file_path, vec![
|
||||||
|
(&"{last_modified_time}".to_string(), &value),
|
||||||
|
]);
|
||||||
|
new_ucmd!()
|
||||||
|
.args(&["--pages=15:17", test_file_path])
|
||||||
|
.succeeds()
|
||||||
|
.stdout_is_templated_fixture(expected_test_file_path1, vec![
|
||||||
|
(&"{last_modified_time}".to_string(), &value),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue