mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
clarify some comments and clean up debug messages
This commit is contained in:
parent
6992b31104
commit
bef734553e
2 changed files with 5 additions and 2 deletions
|
|
@ -688,6 +688,7 @@ impl<'a> ActionManager<'a> {
|
||||||
match self.pddb.borrow().read_dict(VAULT_PASSWORD_DICT, None, Some(256 * 1024)) {
|
match self.pddb.borrow().read_dict(VAULT_PASSWORD_DICT, None, Some(256 * 1024)) {
|
||||||
Ok(keys) => {
|
Ok(keys) => {
|
||||||
let mut oom_keys = 0;
|
let mut oom_keys = 0;
|
||||||
|
il.reserve(keys.len());
|
||||||
for key in keys {
|
for key in keys {
|
||||||
if let Some(data) = key.data {
|
if let Some(data) = key.data {
|
||||||
if let Some(pw) = storage::PasswordRecord::try_from(data).ok() {
|
if let Some(pw) = storage::PasswordRecord::try_from(data).ok() {
|
||||||
|
|
@ -727,7 +728,9 @@ impl<'a> ActionManager<'a> {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
/*
|
/* DELETEME: kept around for quick debugging without having to look through commit history
|
||||||
|
once we have confidence in the new method, we can drop this code right away.
|
||||||
|
|
||||||
#[cfg(feature="vaultperf")]
|
#[cfg(feature="vaultperf")]
|
||||||
self.perfentry(&self.pm, PERFMETA_STARTBLOCK, 1, std::line!());
|
self.perfentry(&self.pm, PERFMETA_STARTBLOCK, 1, std::line!());
|
||||||
let keylist = match self.pddb.borrow().list_keys(VAULT_PASSWORD_DICT, None) {
|
let keylist = match self.pddb.borrow().list_keys(VAULT_PASSWORD_DICT, None) {
|
||||||
|
|
|
||||||
|
|
@ -1578,7 +1578,7 @@ fn wrapped_main() -> ! {
|
||||||
(_, buf) = sbuf.split_at_mut(len + pos);
|
(_, buf) = sbuf.split_at_mut(len + pos);
|
||||||
}
|
}
|
||||||
SerializeResult::Failure(key_name) => {
|
SerializeResult::Failure(key_name) => {
|
||||||
log::info!("ran out of space filling buffer, pushing {} back into the queue", key_name);
|
log::debug!("ran out of space filling buffer, pushing {} back into the queue", key_name);
|
||||||
// data didn't fit, quit with finished = false;
|
// data didn't fit, quit with finished = false;
|
||||||
state.key_list.push(key_name);
|
state.key_list.push(key_name);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue