@@ -626,7 +626,7 @@ bool DiagnosticsService::uploadDiagnostics() {
626626 int ret;
627627
628628 ret = snprintf (diagPreamble, MO_DIAG_PREAMBLE_SIZE,
629- " ### %s Security Log %s%s\n %s\n " ,
629+ " ### %s Hardware Diagnostics %s%s\n %s\n " ,
630630 cpModel ? cpModel : " Charger" ,
631631 fwVersion ? " - v. " : " " , fwVersion ? fwVersion : " " ,
632632 jsonDate);
@@ -774,8 +774,8 @@ bool DiagnosticsService::uploadSecurityLog() {
774774
775775 diagReaderHasData = false ;
776776
777- auto cpModel = makeString ( getMemoryTag ()) ;
778- auto fwVersion = makeString ( getMemoryTag ()) ;
777+ const char * cpModel = nullptr ;
778+ const char * fwVersion = nullptr ;
779779
780780 if (auto bootService = context.getModelCommon ().getBootService ()) {
781781 auto bnData = bootService->getBootNotificationData ();
@@ -792,9 +792,9 @@ bool DiagnosticsService::uploadSecurityLog() {
792792 int ret;
793793
794794 ret = snprintf (diagPreamble, MO_DIAG_PREAMBLE_SIZE,
795- " ### %s Hardware Diagnostics %s%s\n %s\n " ,
796- cpModel. c_str () ,
797- fwVersion. empty () ? " " : " - v. " , fwVersion. c_str () ,
795+ " ### %s Security Log %s%s\n %s\n " ,
796+ cpModel ? cpModel : " Charger " ,
797+ fwVersion ? " - v. " : " " , fwVersion ? fwVersion : " " ,
798798 jsonDate);
799799
800800 if (ret < 0 || (size_t )ret >= MO_DIAG_PREAMBLE_SIZE) {
0 commit comments