mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-03 13:11:31 +00:00
introduce logging for debug purposes
This commit is contained in:
@ -8,6 +8,8 @@ use xenclient::elfloader::ElfImageLoader;
|
||||
use xenclient::XenClientError;
|
||||
|
||||
fn main() -> Result<(), XenClientError> {
|
||||
env_logger::init();
|
||||
|
||||
let args: Vec<String> = env::args().collect();
|
||||
if args.len() != 2 {
|
||||
println!("usage: boot <kernel-image>");
|
||||
|
@ -2,6 +2,8 @@ use xenclient::create::{DomainConfig, PvDomainConfig};
|
||||
use xenclient::{XenClient, XenClientError};
|
||||
|
||||
fn main() -> Result<(), XenClientError> {
|
||||
env_logger::init();
|
||||
|
||||
let mut client = XenClient::open()?;
|
||||
let mut config = DomainConfig::new();
|
||||
config.configure_cpus(1);
|
||||
|
Reference in New Issue
Block a user