@@ -76,13 +76,13 @@ pub async fn print_info(app_details: &mut [AppAttributes], system_details: &mut
7676 ) ;
7777
7878 println ! (
79- " {BOLD_GREEN} Address in Flash: {RESET}{}" ,
80- system_details . appaddr . unwrap ( ) ,
79+ " {BOLD_GREEN} Address in Flash: {RESET}{:#x }" ,
80+ details . address ,
8181 ) ;
8282
8383 println ! (
8484 " {BOLD_GREEN} TBF version: {RESET}{}" ,
85- details. tbf_header. get_binary_version ( ) ,
85+ details. tbf_header. get_tbf_version ( ) ,
8686 ) ;
8787
8888 println ! (
@@ -96,11 +96,14 @@ pub async fn print_info(app_details: &mut [AppAttributes], system_details: &mut
9696 ) ;
9797
9898 println ! (
99- " {BOLD_GREEN} checksum: {RESET}{}" ,
99+ " {BOLD_GREEN} checksum: {RESET}{:#x }" ,
100100 details. tbf_header. checksum( ) ,
101101 ) ;
102102
103- println ! ( " {BOLD_GREEN} flags:{RESET}" ) ;
103+ println ! (
104+ " {BOLD_GREEN} flags: {RESET}{:#b}" ,
105+ details. tbf_header. get_application_flags( ) ,
106+ ) ;
104107 println ! (
105108 " {BOLD_GREEN} enabled: {RESET}{}" ,
106109 details. tbf_header. enabled( ) ,
@@ -111,55 +114,55 @@ pub async fn print_info(app_details: &mut [AppAttributes], system_details: &mut
111114 details. tbf_header. sticky( ) ,
112115 ) ;
113116
114- println ! ( " {BOLD_GREEN} TVL : Main (1){RESET}" ) ;
117+ println ! ( " {BOLD_GREEN} TLV : Main (1){RESET}" ) ;
115118 println ! (
116- " {BOLD_GREEN} init_fn_offset: {RESET}{}" ,
119+ " {BOLD_GREEN} init_fn_offset: {RESET}{}" ,
117120 details. tbf_header. get_init_function_offset( ) ,
118121 ) ;
119122
120123 println ! (
121- " {BOLD_GREEN} protected_size: {RESET}{}" ,
122- details. tbf_header. get_protected_size ( ) ,
124+ " {BOLD_GREEN} protected_trailer_size: {RESET}{}" ,
125+ details. tbf_header. get_protected_trailer_size ( ) ,
123126 ) ;
124127
125128 println ! (
126- " {BOLD_GREEN} minimum_ram_size: {RESET}{}" ,
129+ " {BOLD_GREEN} minimum_ram_size: {RESET}{}" ,
127130 details. tbf_header. get_minimum_app_ram_size( ) ,
128131 ) ;
129132
130- println ! ( " {BOLD_GREEN} TVL : Program (9){RESET}" ) ;
133+ println ! ( " {BOLD_GREEN} TLV : Program (9){RESET}" ) ;
131134 println ! (
132- " {BOLD_GREEN} init_fn_offset: {RESET}{}" ,
135+ " {BOLD_GREEN} init_fn_offset: {RESET}{}" ,
133136 details. tbf_header. get_init_function_offset( ) ,
134137 ) ;
135138
136139 println ! (
137- " {BOLD_GREEN} protected_size: {RESET}{}" ,
138- details. tbf_header. get_protected_size ( ) ,
140+ " {BOLD_GREEN} protected_trailer_size: {RESET}{}" ,
141+ details. tbf_header. get_protected_trailer_size ( ) ,
139142 ) ;
140143
141144 println ! (
142- " {BOLD_GREEN} minimum_ram_size: {RESET}{}" ,
145+ " {BOLD_GREEN} minimum_ram_size: {RESET}{}" ,
143146 details. tbf_header. get_minimum_app_ram_size( ) ,
144147 ) ;
145148
146149 println ! (
147- " {BOLD_GREEN} binary_end_offset: {RESET}{}" ,
150+ " {BOLD_GREEN} binary_end_offset: {RESET}{}" ,
148151 details. tbf_header. get_binary_end( ) ,
149152 ) ;
150153
151154 println ! (
152- " {BOLD_GREEN} app_version: {RESET}{}" ,
155+ " {BOLD_GREEN} app_version: {RESET}{}" ,
153156 details. tbf_header. get_binary_version( ) ,
154157 ) ;
155158
156- println ! ( " {BOLD_GREEN} TVL : Package Name (3){RESET}" ) ;
159+ println ! ( " {BOLD_GREEN} TLV : Package Name (3){RESET}" ) ;
157160 println ! (
158161 " {BOLD_GREEN} package_name: {RESET}{}" ,
159162 details. tbf_header. get_package_name( ) . unwrap( ) ,
160163 ) ;
161164
162- println ! ( " {BOLD_GREEN} TVL : Kernel Version (8){RESET}" ) ;
165+ println ! ( " {BOLD_GREEN} TLV : Kernel Version (8){RESET}" ) ;
163166 println ! (
164167 " {BOLD_GREEN} kernel_major: {RESET}{}" ,
165168 details. tbf_header. get_kernel_version( ) . unwrap( ) . 0 ,
@@ -183,7 +186,7 @@ pub async fn print_info(app_details: &mut [AppAttributes], system_details: &mut
183186 println ! ( " {BOLD_GREEN} footer_size: {RESET}{total_footer_size}" ) ;
184187
185188 for ( j, footer_details) in details. tbf_footers . iter ( ) . enumerate ( ) {
186- println ! ( " {BOLD_GREEN} Footer [{j}] TVL : Credentials{RESET}" ) ;
189+ println ! ( " {BOLD_GREEN} Footer [{j}] TLV : Credentials{RESET}" ) ;
187190
188191 println ! (
189192 " {BOLD_GREEN} Type: {RESET}{}" ,
0 commit comments