From 71cdd4a2d43005a8ab69dae7015f1898616cf304 Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 31 Aug 2021 14:45:25 +0000 Subject: [PATCH] printing the hibernate image size in MB is easier on the eyes ok mlarkin --- sys/kern/subr_hibernate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/subr_hibernate.c b/sys/kern/subr_hibernate.c index e84b27a5764..be5ea6a440c 100644 --- a/sys/kern/subr_hibernate.c +++ b/sys/kern/subr_hibernate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_hibernate.c,v 1.128 2021/08/30 09:45:29 deraadt Exp $ */ +/* $OpenBSD: subr_hibernate.c,v 1.129 2021/08/31 14:45:25 deraadt Exp $ */ /* * Copyright (c) 2011 Ariane van der Steldt @@ -1732,9 +1732,9 @@ hibernate_read_image(union hibernate_info *hib) disk_size = compressed_size; - printf("unhibernating @ block %lld length %lu bytes\n", + printf("unhibernating @ block %lld length %luMB\n", hib->sig_offset - chunktable_size, - compressed_size); + compressed_size / (1024 * 1024)); /* Allocate the pig area */ pig_sz = compressed_size + HIBERNATE_CHUNK_SIZE; -- 2.20.1