opfunctions: Fix dumpId length

Dump Id in BMC Dump Filename is padded to 7 digits instead of 8 digits.
This is causing file name mismatch between the dump offloaded to
HMC/OS and the dump stored on BMC. Fixing this issue by padding Dump
Id to 8 digits.

Test Results:

Before:
root@p10bmc:/var/lib/phosphor-debug-collector/dumps/6# ls
BMCDUMP.13ECF8X.0000006.20241001051003

After:
root@p10bmc:/var/lib/phosphor-debug-collector/dumps/17# ls
BMCDUMP.1012345.00000017.20330125023119

Change-Id: I04c469ad3aaf6480c5732445ba7f8e644357262e
Signed-off-by: SwethaParasa <parasa.swetha1@ibm.com>
1 file changed
tree: 6a118181c99744567603582816d0466505cefa2e
  1. dump/
  2. subprojects/
  3. watchdog/
  4. .clang-format
  5. .gitignore
  6. .shellcheck-ignore
  7. checkstop_app.cpp
  8. LICENSE
  9. meson.build
  10. meson.options
  11. OWNERS
  12. README.md
  13. watchdog_timeout.cpp
README.md

openpower-debug-collector

Building the Code

To build this package, do the following steps:

    1. meson build
    2. ninja -C build

To clean the repository run `rm -rf build`.