@@ -12,8 +12,6 @@ use tokio_serial::SerialStream;
1212use crate :: bootloader_serial:: { issue_command, Command , Response } ;
1313use crate :: errors:: TockloaderError ;
1414
15- use log:: info;
16-
1715/// This structure contains all relevant information about a tock application.
1816///
1917/// All data is stored either within [TbfHeader]s, or [TbfFooter]s.
@@ -80,8 +78,6 @@ impl AppAttributes {
8078 . read ( appaddr, & mut appdata)
8179 . map_err ( TockloaderError :: ProbeRsReadError ) ?;
8280
83- info ! ( "Read board_core" ) ;
84-
8581 let tbf_version: u16 ;
8682 let header_size: u16 ;
8783 let total_size: u32 ;
@@ -100,12 +96,8 @@ impl AppAttributes {
10096 tbf_version = data. 0 ;
10197 header_size = data. 1 ;
10298 total_size = data. 2 ;
103- info ! ( "Obtained tbf header" ) ;
104- }
105- _ => {
106- info ! ( "Buffer is too short!" ) ;
107- return Ok ( apps_details) ;
10899 }
100+ _ => return Ok ( apps_details) ,
109101 } ;
110102
111103 let mut header_data = vec ! [ 0u8 ; header_size as usize ] ;
@@ -154,7 +146,6 @@ impl AppAttributes {
154146 break ;
155147 }
156148 }
157- info ! ( "Obtained header and footer" ) ;
158149
159150 let details: AppAttributes = AppAttributes :: new ( header, footers) ;
160151
@@ -199,7 +190,7 @@ impl AppAttributes {
199190 // Read the first 8 bytes, which is the length of a TLV header.
200191 let ( _, appdata) =
201192 issue_command ( port, Command :: ReadRange , pkt, true , 8 , Response :: ReadRange ) . await ?;
202- info ! ( "Issued pkt and obtained appdata" ) ;
193+
203194 let tbf_version: u16 ;
204195 let header_size: u16 ;
205196 let total_size: u32 ;
@@ -241,7 +232,6 @@ impl AppAttributes {
241232
242233 let header = parse_tbf_header ( & header_data, tbf_version)
243234 . map_err ( TockloaderError :: ParsingError ) ?;
244- info ! ( "Obtained header" ) ;
245235 let binary_end_offset = header. get_binary_end ( ) ;
246236
247237 let mut footers: Vec < TbfFooter > = vec ! [ ] ;
@@ -286,7 +276,7 @@ impl AppAttributes {
286276 break ;
287277 }
288278 }
289- info ! ( "Obtained footer" ) ;
279+
290280 let details: AppAttributes = AppAttributes :: new ( header, footers) ;
291281
292282 apps_details. insert ( apps_counter, details) ;
0 commit comments