diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2017-06-22 01:26:29 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2017-06-22 01:26:29 +0000 |
commit | 033380033eea2559295163d3e4e51c127291bfbe (patch) | |
tree | a17a79e4e9ca220526afef405950187a72766a56 /sys/arch/amd64/stand | |
parent | cac4d2d39bd3043c6f8ea358b2b3d7f6b933e2c6 (diff) |
Only print the magic '&' letter on a disk if the hibernate partition is
valid. This is an undocumented little debugging diagnostic, much like
the '*'.
Diffstat (limited to 'sys/arch/amd64/stand')
-rw-r--r-- | sys/arch/amd64/stand/libsa/diskprobe.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/amd64/stand/libsa/diskprobe.c b/sys/arch/amd64/stand/libsa/diskprobe.c index 48dfb619840..507bca661c9 100644 --- a/sys/arch/amd64/stand/libsa/diskprobe.c +++ b/sys/arch/amd64/stand/libsa/diskprobe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diskprobe.c,v 1.18 2017/06/19 22:50:50 deraadt Exp $ */ +/* $OpenBSD: diskprobe.c,v 1.19 2017/06/22 01:26:28 deraadt Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -489,7 +489,9 @@ check_hibernate(struct diskinfo *dip) (sizeof(union hibernate_info) / DEV_BSIZE); error = dip->strategy(dip, F_READ, (daddr32_t)sec, sizeof hib, &hib, NULL); - if (error == 0 && hib.magic == HIBERNATE_MAGIC) /* Hibernate present */ + if (error == 0 && hib.magic == HIBERNATE_MAGIC) { + /* Hibernate present */ dip->bios_info.flags |= BDI_HIBVALID; - printf("&"); + printf("&"); + } } |