zdump/scsi: reuse zipl magic string definitions from boot_defs.h

To remove duplication of definitions.

Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Reviewed-by: Mikhail Zaslonko <zaslonko@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Alexander Egorenkov
2022-06-01 08:02:30 +02:00
committed by Jan Höppner
parent 647e8b5c37
commit dc49b4fcf0

View File

@@ -34,7 +34,7 @@ static struct {
*/
static int check_zipl_magic(void *buf)
{
if (memcmp(buf, "zIPL", 4))
if (memcmp(buf, ZIPL_MAGIC, ZIPL_MAGIC_SIZE))
return -1;
return 0;
}