diff --git a/src/svd/field.rs b/src/svd/field.rs index e0bb0a3..d9047e4 100644 --- a/src/svd/field.rs +++ b/src/svd/field.rs @@ -12,7 +12,7 @@ pub fn generate(f: &chip::Field) -> crate::Result { desc.as_ref() } else { log::warn!("Description missing for field {:?}", f.name); - "" + "No Description." }, ); el.child_with_text("bitRange", format!("[{}:{}]", f.range.1, f.range.0)); diff --git a/src/svd/interrupt.rs b/src/svd/interrupt.rs index be77f20..ab1514e 100644 --- a/src/svd/interrupt.rs +++ b/src/svd/interrupt.rs @@ -26,7 +26,7 @@ pub fn generate(peripherals: &mut xmltree::Element, c: &chip::Chip) -> crate::Re desc.as_ref() } else { log::warn!("Description missing for field {:?}", interrupt.name); - "" + "No Description." }, ); diff --git a/src/svd/peripheral.rs b/src/svd/peripheral.rs index 9690417..6539dba 100644 --- a/src/svd/peripheral.rs +++ b/src/svd/peripheral.rs @@ -44,7 +44,7 @@ pub fn generate(p: &chip::Peripheral) -> crate::Result { desc.as_ref() } else { log::warn!("Description missing for peripheral {:?}", p.name); - "" + "No Description." }, ); el.child_with_text("baseAddress", format!("0x{:X}", base)); diff --git a/src/svd/register.rs b/src/svd/register.rs index 5601c88..027f87c 100644 --- a/src/svd/register.rs +++ b/src/svd/register.rs @@ -12,7 +12,7 @@ pub fn generate(r: &chip::Register, base: usize) -> crate::Result" + "No Description." }, ); el.child_with_text("addressOffset", format!("0x{:X}", r.address - base)); diff --git a/src/svd/restriction.rs b/src/svd/restriction.rs index a447173..ae7d8e2 100644 --- a/src/svd/restriction.rs +++ b/src/svd/restriction.rs @@ -60,7 +60,7 @@ pub fn generate_enumerated(e: &chip::EnumeratedValue) -> crate::Result" + "No Description." }, ); el.child_with_text("value", e.value.to_string());