Lines Matching refs:report
598 static int report(enum updatehub_state state) in report() function
600 struct report report; in report() local
621 memset(&report, 0, sizeof(report)); in report()
622 report.product_uid = CONFIG_UPDATEHUB_PRODUCT_UID; in report()
623 report.device_identity.id = device_id; in report()
624 report.version = firmware_version; in report()
625 report.hardware = CONFIG_BOARD; in report()
626 report.status = exec; in report()
627 report.package_uid = update_info.package_uid; in report()
631 report.previous_state = in report()
635 report.previous_state = in report()
639 report.previous_state = in report()
643 report.previous_state = ""; in report()
647 if (strncmp(report.previous_state, "", sizeof("") - 1) != 0) { in report()
648 report.error_message = updatehub_response(ctx.code_status); in report()
650 report.error_message = ""; in report()
656 &report, ctx.payload, in report()
948 if (report(UPDATEHUB_STATE_DOWNLOADING) < 0) { in z_impl_updatehub_update()
953 if (report(UPDATEHUB_STATE_INSTALLING) < 0) { in z_impl_updatehub_update()
962 if (report(UPDATEHUB_STATE_DOWNLOADED) < 0) { in z_impl_updatehub_update()
974 if (report(UPDATEHUB_STATE_INSTALLED) < 0) { in z_impl_updatehub_update()
979 if (report(UPDATEHUB_STATE_REBOOTING) < 0) { in z_impl_updatehub_update()
990 if (report(UPDATEHUB_STATE_ERROR) < 0) { in z_impl_updatehub_update()