kata: compile-out debug & trace log calls in release builds

Change-Id: Ibde5a49141daa67c57e24340b73b436d08e68e7a
GitOrigin-RevId: 4a77833a6cd3e16850d2e4d90b7e7ed916770b50
This commit is contained in:
Sam Leffler 2022-08-25 15:37:51 -07:00
parent b099005951
commit 601e7f5c78
31 changed files with 31 additions and 31 deletions

View File

@ -31,7 +31,7 @@ kata-io = { path = "../kata-io" }
kata-os-common = { path = "../../kata-os-common" }
kata-shell = { path = "../kata-shell" }
kata-uart-client = { path = "../kata-uart-client" }
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }
[lib]
name = "kata_debug_console"

View File

@ -64,5 +64,5 @@ kata-security-interface = { path = "../../SecurityCoordinator/kata-security-inte
kata-storage-interface = { path = "../../StorageManager/kata-storage-interface" }
kata-timer-interface = { path = "../../TimerService/kata-timer-interface" }
kata-sdk-interface = { path = "../../SDKRuntime/kata-sdk-interface" }
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }
zmodem = { path = "../zmodem" }

View File

@ -23,4 +23,4 @@ edition = "2021"
cstr_core = { version = "0.2.3", default-features = false }
cty = "0.2.1"
kata-io = { path = "../kata-io" }
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }

View File

@ -22,7 +22,7 @@ version = "0.1.0"
crc = { version = "1.4.0", default_features = false }
hex = { version = "0.4.3", default-features = false, features = ["alloc"] }
kata-io = { path = "../kata-io" }
log = { version = "0.4.14", default-features = false }
log = { version = "0.4", default-features = false, features = ["release_max_level_info"] }
[dev-dependencies]
env_logger = "0.9.0"

View File

@ -22,7 +22,7 @@ default = []
[dependencies]
kata-os-common = { path = "../../kata-os-common" }
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }
cty = "0.2.1"
[lib]

View File

@ -21,7 +21,7 @@ edition = "2021"
kata-memory-interface = { path = "../kata-memory-interface" }
kata-memory-manager = { path = "../kata-memory-manager" }
kata-os-common = { path = "../../kata-os-common" }
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }
postcard = { version = "0.7", features = ["alloc"], default-features = false }
[lib]

View File

@ -29,5 +29,5 @@ CONFIG_KERNEL_MCS = []
postcard = { version = "0.7", features = ["alloc"], default-features = false }
serde = { version = "1.0", default-features = false, features = ["alloc", "derive"] }
kata-os-common = { path = "../../kata-os-common" }
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }
smallvec = "1.2"

View File

@ -12,6 +12,6 @@ CONFIG_NOISY_UNTYPEDS = []
[dependencies]
kata-os-common = { path = "../../kata-os-common" }
kata-memory-interface = { path = "../kata-memory-interface" }
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }
smallvec = "1.2"
spin = "0.9"

View File

@ -26,7 +26,7 @@ kata-ml-coordinator = { path = "../kata-ml-coordinator" }
kata-ml-interface = { path = "../kata-ml-interface" }
kata-ml-shared = { path = "../kata-ml-shared" }
kata-timer-interface = { path = "../../TimerService/kata-timer-interface" }
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }
spin = "0.9"
[lib]

View File

@ -30,5 +30,5 @@ kata-proc-interface = { path = "../../ProcessManager/kata-proc-interface" }
kata-security-interface = { path = "../../SecurityCoordinator/kata-security-interface" }
kata-timer-interface = { path = "../../TimerService/kata-timer-interface" }
kata-vec-core = { path = "../kata-vec-core" }
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }
spin = "0.9"

View File

@ -18,7 +18,7 @@ version = "0.1.0"
edition = "2021"
[dependencies]
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }
kata-io = { path = "../../DebugConsole/kata-io" }
kata-ml-shared = { path = "../kata-ml-shared" }
kata-vec-core = { path = "../kata-vec-core" }

View File

@ -21,4 +21,4 @@ edition = "2021"
kata-io = { path = "../../DebugConsole/kata-io" }
kata-ml-shared = { path = "../kata-ml-shared" }
modular-bitfield = "0.11.2"
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }

View File

@ -23,7 +23,7 @@ kata-memory-interface = { path = "../../MemoryManager/kata-memory-interface" }
kata-os-common = { path = "../../kata-os-common" }
kata-proc-interface = { path = "../kata-proc-interface" }
kata-proc-manager = { path = "../kata-proc-manager" }
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }
postcard = { version = "0.7", features = ["alloc"], default-features = false }
[lib]

View File

@ -23,6 +23,6 @@ kata-memory-interface = { path = "../../MemoryManager/kata-memory-interface" }
kata-io = { path = "../../DebugConsole/kata-io" }
kata-os-common = { path = "../../kata-os-common" }
kata-security-interface = { path = "../../SecurityCoordinator/kata-security-interface" }
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }
postcard = { version = "0.7", features = ["alloc"], default-features = false }
serde = { version = "1.0", default-features = false, features = ["alloc", "derive"] }

View File

@ -39,7 +39,7 @@ kata-proc-interface = { path = "../kata-proc-interface" }
kata-memory-interface = { path = "../../MemoryManager/kata-memory-interface" }
kata-os-common = { path = "../../kata-os-common" }
kata-security-interface = { path = "../../SecurityCoordinator/kata-security-interface" }
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }
smallstr = "0.2"
spin = "0.9"
static_assertions = "1.1"

View File

@ -22,7 +22,7 @@ cstr_core = { version = "0.2.3", default-features = false }
kata-os-common = { path = "../../kata-os-common" }
kata-sdk-interface = { path = "../kata-sdk-interface" }
kata-sdk-runtime = { path = "../kata-sdk-runtime" }
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }
postcard = { version = "0.7", features = ["alloc"], default-features = false }
[lib]

View File

@ -19,4 +19,4 @@ edition = "2021"
[dependencies]
kata-sdk-interface = { path = "../kata-sdk-interface" }
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }

View File

@ -22,7 +22,7 @@ kata-os-common = { path = "../../kata-os-common" }
kata-security-interface = { path = "../kata-security-interface" }
kata-security-coordinator = { path = "../kata-security-coordinator" }
kata-storage-interface = { path = "../../StorageManager/kata-storage-interface" }
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }
postcard = { version = "0.7", features = ["alloc"], default-features = false }
[lib]

View File

@ -28,5 +28,5 @@ kata-memory-interface = { path = "../../MemoryManager/kata-memory-interface" }
kata-os-common = { path = "../../kata-os-common" }
kata-security-interface = { path = "../kata-security-interface" }
kata-storage-interface = { path = "../../StorageManager/kata-storage-interface" }
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }
postcard = { version = "0.7", features = ["alloc"], default-features = false }

View File

@ -21,7 +21,7 @@ edition = "2021"
kata-memory-interface = { path = "../../MemoryManager/kata-memory-interface" }
kata-os-common = { path = "../../kata-os-common" }
kata-storage-interface = { path = "../../StorageManager/kata-storage-interface" }
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }
postcard = { version = "0.7", features = ["alloc"], default-features = false }
serde = { version = "1.0", default-features = false, features = ["alloc", "derive"] }
serde-big-array = "0.3"

View File

@ -22,7 +22,7 @@ cstr_core = { version = "0.2.3", default-features = false }
kata-os-common = { path = "../../kata-os-common" }
kata-storage-interface = { path = "../kata-storage-interface" }
kata-storage-manager = { path = "../kata-storage-manager" }
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }
postcard = { version = "0.7", features = ["alloc"], default-features = false }
[lib]

View File

@ -20,4 +20,4 @@ edition = "2021"
[dependencies]
kata-security-interface = { path = "../../SecurityCoordinator/kata-security-interface" }
kata-storage-interface = { path = "../kata-storage-interface" }
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }

View File

@ -23,7 +23,7 @@ edition = "2021"
kata-os-common = { path = "../../kata-os-common" }
kata-timer-interface = { path = "../kata-timer-interface" }
kata-timer-service = { path = "../kata-timer-service" }
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }
[lib]
name = "kata_timer_component"

View File

@ -20,6 +20,6 @@ edition = "2021"
[dependencies]
kata-os-common = { path = "../../kata-os-common" }
kata-timer-interface = { path = "../kata-timer-interface" }
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }
opentitan-timer = { path = "../opentitan-timer" }
spin = "0.9"

View File

@ -20,4 +20,4 @@ edition = "2021"
[dependencies]
kata-timer-interface = { path = "../kata-timer-interface" }
modular-bitfield = "0.11.2"
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }

View File

@ -11,7 +11,7 @@ sel4-config = { path = "../sel4-config" }
CONFIG_PRINTING = []
[dependencies]
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }
allocator = { path = "../allocator" }
logger = { path = "../logger" }
sel4-sys = { path = "../sel4-sys" }

View File

@ -21,4 +21,4 @@ path = "mod.rs"
[dependencies]
cstr_core = { version = "0.2.3", default-features = false }
sel4-sys = { path = "../sel4-sys" }
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }

View File

@ -5,5 +5,5 @@ authors = ["Sam Leffler <sleffler@google.com>"]
edition = "2021"
[dependencies]
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }
sel4-sys = { path = "../sel4-sys" }

View File

@ -44,7 +44,7 @@ path = "mod.rs"
capdl = { path = "../capdl" }
cpio = { git = "https://github.com/rcore-os/cpio" }
cstr_core = "0.2.3"
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }
sel4-sys = { path = "../sel4-sys", features = ["arch_generic"] }
smallvec = "1.2"
static_assertions = "1.1"

View File

@ -4,4 +4,4 @@ version = "0.1.0"
edition = "2021"
[dependencies]
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }

View File

@ -10,5 +10,5 @@ TRACE_OPS = []
[dependencies]
bitvec = { version = "1.0", default-features = false, features = ["alloc"] }
log = "0.4"
log = { version = "0.4", features = ["release_max_level_info"] }
spin = "0.9"