Misc: Fix leftover debug print put_str16 -> str16

This commit is contained in:
Kedar Sovani 2023-01-01 11:55:52 +05:30
parent 752a2f3880
commit f096f50054

View file

@ -130,7 +130,7 @@ impl<'a, 'b> TLVWriter<'a, 'b> {
pub fn str8(&mut self, tag_type: TagType, data: &[u8]) -> Result<(), Error> { pub fn str8(&mut self, tag_type: TagType, data: &[u8]) -> Result<(), Error> {
if data.len() > 256 { if data.len() > 256 {
error!("use put_str16() instead"); error!("use str16() instead");
return Err(Error::Invalid); return Err(Error::Invalid);
} }
self.put_control_tag(tag_type, WriteElementType::Str8l)?; self.put_control_tag(tag_type, WriteElementType::Str8l)?;