utils: Rename crc32() to pldm_edac_crc32()
Chip away at transitioning the library API surface to a consistent
symbol prefix.
Change-Id: I1abd96407867ddf8390cb9fbba9a8085478f08dd
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
diff --git a/tests/dsp/bios_table.cpp b/tests/dsp/bios_table.cpp
index 19fb929..bdef5a6 100644
--- a/tests/dsp/bios_table.cpp
+++ b/tests/dsp/bios_table.cpp
@@ -22,7 +22,7 @@
{
auto padSize = ((table.size() % 4) ? (4 - table.size() % 4) : 0);
table.insert(table.end(), padSize, 0);
- uint32_t checksum = crc32(table.data(), table.size());
+ uint32_t checksum = pldm_edac_crc32(table.data(), table.size());
checksum = htole32(checksum);
uint8_t a[4];
std::memcpy(a, &checksum, sizeof(checksum));
diff --git a/tests/dsp/bios_table_iter.c b/tests/dsp/bios_table_iter.c
index 7260054..8afb651 100644
--- a/tests/dsp/bios_table_iter.c
+++ b/tests/dsp/bios_table_iter.c
@@ -15,8 +15,8 @@
#include "dsp/bios_table.c"
/* Satisfy the symbol needs of bios_table.c */
-uint32_t crc32(const void* data LIBPLDM_CC_UNUSED,
- size_t size LIBPLDM_CC_UNUSED)
+uint32_t pldm_edac_crc32(const void* data LIBPLDM_CC_UNUSED,
+ size_t size LIBPLDM_CC_UNUSED)
{
return 0;
}