Skip to content

Commit 90db523

Browse files
anpCQ Bot
authored andcommitted
[starnix] Reduce severity of several log messages.
Change-Id: If174d3a4bb7611a407cb0feb7d76d8f37734d019 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1235177 Fuchsia-Auto-Submit: Adam Perry <[email protected]> Reviewed-by: Vickie Cheng <[email protected]> Commit-Queue: Auto-Submit <[email protected]>
1 parent 76968da commit 90db523

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

src/starnix/kernel/runner/container.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ async fn create_container(
475475
trace_duration!(CATEGORY_STARNIX, NAME_CREATE_CONTAINER);
476476
const DEFAULT_INIT: &str = "/container/init";
477477

478-
log_info!(
478+
log_debug!(
479479
"Creating container {:#?}, kernel config {:#?}",
480480
start_info.program,
481481
kernel_structured_config,
@@ -484,6 +484,7 @@ async fn create_container(
484484
let pkg_dir_proxy = fio::DirectorySynchronousProxy::new(pkg_channel);
485485

486486
let features = parse_features(&start_info, kernel_structured_config)?;
487+
log_debug!("Creating container with {:#?}", features);
487488
let mut kernel_cmdline = BString::from(start_info.program.kernel_cmdline.as_bytes());
488489
if features.android_serialno {
489490
match get_serial_number().await {

src/starnix/kernel/task/scheduler/manager.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use fidl_fuchsia_scheduler::{
88
RoleManagerMarker, RoleManagerSetRoleRequest, RoleManagerSynchronousProxy, RoleName, RoleTarget,
99
};
1010
use fuchsia_component::client::connect_to_protocol_sync;
11-
use starnix_logging::{impossible_error, log_debug, log_info, log_warn, track_stub};
11+
use starnix_logging::{impossible_error, log_debug, log_warn, track_stub};
1212
use starnix_uapi::errors::Errno;
1313
use starnix_uapi::{
1414
errno, error, sched_param, SCHED_BATCH, SCHED_DEADLINE, SCHED_FIFO, SCHED_IDLE, SCHED_NORMAL,
@@ -31,10 +31,10 @@ impl SchedulerManager {
3131
&*fuchsia_runtime::thread_self(),
3232
SchedulerPolicyKind::default().role_name(),
3333
) {
34-
log_warn!("Setting thread role failed ({e:?}), will not set thread priority.");
34+
log_debug!("Setting thread role failed ({e:?}), will not set thread priority.");
3535
None
3636
} else {
37-
log_info!("Thread role set successfully, scheduler manager initialized.");
37+
log_debug!("Thread role set successfully, scheduler manager initialized.");
3838
Some(role_manager)
3939
};
4040

@@ -107,7 +107,7 @@ impl SchedulerManager {
107107
..Default::default()
108108
};
109109
let _ = role_manager.set_role(request, zx::MonotonicInstant::INFINITE).map_err(|err| {
110-
log_warn!(err:?; "Unable to set thread role.");
110+
log_warn!(err:%; "Unable to set thread role.");
111111
errno!(EINVAL)
112112
})?;
113113
Ok(())

src/starnix/kernel/time/utc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use crate::vdso::vdso_loader::MemoryMappedVvar;
66
use fuchsia_runtime::{zx_utc_reference_get, UtcTimeline};
7-
use starnix_logging::log_warn;
7+
use starnix_logging::{log_info, log_warn};
88
use starnix_sync::Mutex;
99
use std::sync::LazyLock;
1010
use zx::{self as zx, AsHandleRef, Unowned};
@@ -86,7 +86,7 @@ impl UtcClock {
8686
fn poll_transform(&mut self) {
8787
if !self.real_utc_clock_started {
8888
if self.check_real_utc_clock_started() {
89-
log_warn!("Real UTC clock has started");
89+
log_info!("Real UTC clock has started");
9090
self.real_utc_clock_started = true;
9191
}
9292
}

0 commit comments

Comments
 (0)