Lines Matching refs:shell_print

34 	shell_print(bt_mesh_shell_ctx_shell, "DFU ended: %u", reason);  in dfu_cli_ended()
39 shell_print(bt_mesh_shell_ctx_shell, "DFU applied."); in dfu_cli_applied()
45 shell_print(bt_mesh_shell_ctx_shell, "DFU target lost: 0x%04x", target->blob.addr); in dfu_cli_lost_target()
50 shell_print(bt_mesh_shell_ctx_shell, "DFU confirmed"); in dfu_cli_confirmed()
89 shell_print(bt_mesh_shell_ctx_shell, "DFU setup"); in dfu_start()
99 shell_print(bt_mesh_shell_ctx_shell, "DFU failed"); in dfu_end()
118 shell_print(bt_mesh_shell_ctx_shell, "Applying DFU transfer..."); in dfu_apply()
177 shell_print(sh, "Buffer is too small: %u", in cmd_dfu_comp_add()
219 shell_print(sh, "Buffer is too small: %u", in cmd_dfu_comp_elem_add()
255 shell_print(sh, "Composition data is not set"); in cmd_dfu_comp_hash_get()
263 shell_print(sh, "Composition data to be hashed:"); in cmd_dfu_comp_hash_get()
264 shell_print(sh, "\tCID: 0x%04x", sys_get_le16(&dfu_comp_data.data[0])); in cmd_dfu_comp_hash_get()
265 shell_print(sh, "\tPID: 0x%04x", sys_get_le16(&dfu_comp_data.data[2])); in cmd_dfu_comp_hash_get()
266 shell_print(sh, "\tVID: 0x%04x", sys_get_le16(&dfu_comp_data.data[4])); in cmd_dfu_comp_hash_get()
267 shell_print(sh, "\tCPRL: %u", sys_get_le16(&dfu_comp_data.data[6])); in cmd_dfu_comp_hash_get()
268 shell_print(sh, "\tFeatures: 0x%x", sys_get_le16(&dfu_comp_data.data[8])); in cmd_dfu_comp_hash_get()
274 shell_print(sh, "\tElem: %u", sys_get_le16(&dfu_comp_data.data[i])); in cmd_dfu_comp_hash_get()
275 shell_print(sh, "\t\tNumS: %u", sig_model_count); in cmd_dfu_comp_hash_get()
276 shell_print(sh, "\t\tNumV: %u", vnd_model_count); in cmd_dfu_comp_hash_get()
279 shell_print(sh, "\t\tSIG Model ID: 0x%04x", in cmd_dfu_comp_hash_get()
286 shell_print(sh, "\t\tVnd Company ID: 0x%04x, Model ID: 0x%04x", in cmd_dfu_comp_hash_get()
296 shell_print(sh, "Failed to compute composition data hash: %d\n", err); in cmd_dfu_comp_hash_get()
300 shell_print(sh, "Composition data hash: 0x%04x", hash); in cmd_dfu_comp_hash_get()
335 shell_print(sh, "User data is too big."); in cmd_dfu_metadata_encode()
345 shell_print(sh, "Metadata to be encoded:"); in cmd_dfu_metadata_encode()
346 shell_print(sh, "\tVersion: %u.%u.%u+%u", md.fw_ver.major, md.fw_ver.minor, in cmd_dfu_metadata_encode()
348 shell_print(sh, "\tSize: %u", md.fw_size); in cmd_dfu_metadata_encode()
349 shell_print(sh, "\tCore Type: 0x%x", md.fw_core_type); in cmd_dfu_metadata_encode()
350 shell_print(sh, "\tComposition data hash: 0x%x", md.comp_hash); in cmd_dfu_metadata_encode()
351 shell_print(sh, "\tElements: %u", md.elems); in cmd_dfu_metadata_encode()
354 shell_print(sh, "\tUser data: %s", argv[10]); in cmd_dfu_metadata_encode()
357 shell_print(sh, "\tUser data length: %u", md.user_data_len); in cmd_dfu_metadata_encode()
361 shell_print(sh, "Failed to encode metadata: %d", err); in cmd_dfu_metadata_encode()
367 shell_print(sh, "Encoded metadata: %s", md_str); in cmd_dfu_metadata_encode()
392 shell_print(sh, "Adding slot (size: %u)", size); in cmd_dfu_slot_add()
396 shell_print(sh, "Failed to reserve slot."); in cmd_dfu_slot_add()
413 shell_print(sh, "Failed to commit slot: %d", err); in cmd_dfu_slot_add()
418 shell_print(sh, "Slot added. Index: %u", bt_mesh_dfu_slot_img_idx_get(slot)); in cmd_dfu_slot_add()
437 shell_print(sh, "No slot at %u", idx); in cmd_dfu_slot_del()
443 shell_print(sh, "Failed deleting slot %u (err: %d)", idx, in cmd_dfu_slot_del()
448 shell_print(sh, "Slot %u deleted.", idx); in cmd_dfu_slot_del()
455 shell_print(sh, "All slots deleted."); in cmd_dfu_slot_del_all()
473 shell_print(sh, "Slot %u:", *idx); in slot_info_print()
475 shell_print(sh, "Slot:"); in slot_info_print()
477 shell_print(sh, "\tSize: %u bytes", slot->size); in slot_info_print()
478 shell_print(sh, "\tFWID: %s", fwid); in slot_info_print()
479 shell_print(sh, "\tMetadata: %s", metadata); in slot_info_print()
496 shell_print(sh, "No slot at %u", idx); in cmd_dfu_slot_get()
549 shell_print(sh, "No room."); in cmd_dfu_target()
555 shell_print(sh, "Target 0x%04x already exists", addr); in cmd_dfu_target()
565 shell_print(sh, "Added target 0x%04x", addr); in cmd_dfu_target()
593 shell_print(sh, "Failed getting target status (err: %d)", in cmd_dfu_target_state()
598 shell_print(sh, "Target 0x%04x:", bt_mesh_shell_target_ctx.dst); in cmd_dfu_target_state()
599 shell_print(sh, "\tStatus: %u", rsp.status); in cmd_dfu_target_state()
600 shell_print(sh, "\tPhase: %u", rsp.phase); in cmd_dfu_target_state()
602 shell_print(sh, "\tEffect: %u", rsp.effect); in cmd_dfu_target_state()
603 shell_print(sh, "\tImg Idx: %u", rsp.img_idx); in cmd_dfu_target_state()
604 shell_print(sh, "\tTTL: %u", rsp.ttl); in cmd_dfu_target_state()
605 shell_print(sh, "\tTimeout base: %u", rsp.timeout_base); in cmd_dfu_target_state()
623 shell_print(bt_mesh_shell_ctx_shell, "Image %u:", idx); in dfu_img_cb()
624 shell_print(bt_mesh_shell_ctx_shell, "\tFWID: %s", fwid); in dfu_img_cb()
626 shell_print(bt_mesh_shell_ctx_shell, "\tURI: %s", img->uri); in dfu_img_cb()
655 shell_print(sh, "Requesting DFU images in 0x%04x", bt_mesh_shell_target_ctx.dst); in cmd_dfu_target_imgs()
660 shell_print(sh, "Request failed (err: %d)", err); in cmd_dfu_target_imgs()
693 shell_print(sh, "No image in slot %u", slot_idx); in cmd_dfu_target_check()
700 shell_print(sh, "Metadata check failed. err: %d", err); in cmd_dfu_target_check()
704 shell_print(sh, "Slot %u check for 0x%04x image %u:", slot_idx, in cmd_dfu_target_check()
706 shell_print(sh, "\tStatus: %u", rsp.status); in cmd_dfu_target_check()
707 shell_print(sh, "\tEffect: 0x%x", rsp.effect); in cmd_dfu_target_check()
751 shell_print(sh, "No targets."); in cmd_dfu_send()
757 shell_print(sh, "No image in slot %u", slot_idx); in cmd_dfu_send()
761 shell_print(sh, "Starting DFU from slot %u (%u targets)", slot_idx, in cmd_dfu_send()
771 shell_print(sh, "Failed (err: %d)", err); in cmd_dfu_send()
798 shell_print(sh, "Cancelling DFU for 0x%04x", ctx.addr); in cmd_dfu_tx_cancel()
800 shell_print(sh, "Cancelling DFU"); in cmd_dfu_tx_cancel()
806 shell_print(sh, "Failed (err: %d)", err); in cmd_dfu_tx_cancel()
820 shell_print(sh, "Applying DFU"); in cmd_dfu_apply()
824 shell_print(sh, "Failed (err: %d)", err); in cmd_dfu_apply()
838 shell_print(sh, "Confirming DFU"); in cmd_dfu_confirm()
842 shell_print(sh, "Failed (err: %d)", err); in cmd_dfu_confirm()
856 shell_print(sh, "Suspending DFU"); in cmd_dfu_suspend()
860 shell_print(sh, "Failed (err: %d)", err); in cmd_dfu_suspend()
874 shell_print(sh, "Resuming DFU"); in cmd_dfu_resume()
878 shell_print(sh, "Failed (err: %d)", err); in cmd_dfu_resume()
890 shell_print(sh, "DFU progress: %u %%", in cmd_dfu_tx_progress()
927 shell_print(sh, "DFU progress: %u %%", in cmd_dfu_rx_progress()