From 281e1ffab843fc9e536e47fffe1647f212cf3dc3 Mon Sep 17 00:00:00 2001 From: nischaljain Date: Wed, 24 Aug 2022 12:16:40 +0000 Subject: [PATCH] Modify GXP coredump naming signature Currently its "coredump_gxp_platform*" & "crashinfo_gxp_platform*" Update it to "coredump_gxp_*" & "crashinfo_gxp_*" to incorporate both Amalthea and Callisto dumps. Its a modification over CL ag/16787185. Test: adb root; adb remount -R; adb bugreport Bug: 236046046 Signed-off-by: nischaljain Change-Id: I1173cca0a8200039f76f2f1dc94e51ecccf3a97e --- dumpstate/DumpstateDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp index e381ceac..dd2b0c8b 100644 --- a/dumpstate/DumpstateDevice.cpp +++ b/dumpstate/DumpstateDevice.cpp @@ -1150,8 +1150,8 @@ void DumpstateDevice::dumpModem(int fd, int fdModem) RunCommandToFd(fd, "MKDIR GXP COREDUMP", {"/vendor/bin/mkdir", "-p", gxpCoredumpOutputDir}, CommandOptions::WithTimeout(2).Build()); // Copy GXP coredumps and crashinfo to the output directory. - dumpLogs(fd, gxpCoredumpInputDir + "/coredump", gxpCoredumpOutputDir, maxGxpDebugDumps, "coredump_gxp_platform"); - dumpLogs(fd, gxpCoredumpInputDir, gxpCoredumpOutputDir, maxGxpDebugDumps, "crashinfo_gxp_platform"); + dumpLogs(fd, gxpCoredumpInputDir + "/coredump", gxpCoredumpOutputDir, maxGxpDebugDumps, "coredump_gxp_"); + dumpLogs(fd, gxpCoredumpInputDir, gxpCoredumpOutputDir, maxGxpDebugDumps, "crashinfo_gxp_"); } dumpLogs(fd, extendedLogDir, modemLogAllDir, maxFileNum, EXTENDED_LOG_PREFIX);