From dc49b4fcf07a00a51683f44b6b5ff0508e5433fe Mon Sep 17 00:00:00 2001 From: Alexander Egorenkov Date: Wed, 1 Jun 2022 08:02:30 +0200 Subject: [PATCH] zdump/scsi: reuse zipl magic string definitions from boot_defs.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To remove duplication of definitions. Signed-off-by: Alexander Egorenkov Reviewed-by: Mikhail Zaslonko Signed-off-by: Jan Höppner --- zdump/dt_scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zdump/dt_scsi.c b/zdump/dt_scsi.c index aac119b3..62ad6c02 100644 --- a/zdump/dt_scsi.c +++ b/zdump/dt_scsi.c @@ -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; }