1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-01 08:27:59 +00:00

o Restore kerneldumpheader.architectureversion bytes swopping

mangled in rev. 1.72.

PR:		bin/86805
Submitted by:	Gavin Atkinson
MFC after:	3 days
This commit is contained in:
Maxim Konovalov 2005-10-02 11:31:45 +00:00
parent ec3ae2cced
commit 125450bbb7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=150818

View File

@ -107,7 +107,8 @@ printheader(FILE *f, const struct kerneldumpheader *h, const char *device,
fprintf(f, "Dump header from device %s\n", device);
fprintf(f, " Architecture: %s\n", h->architecture);
fprintf(f, " Architecture Version: %u\n", h->architectureversion);
fprintf(f, " Architecture Version: %u\n",
dtoh32(h->architectureversion));
dumplen = dtoh64(h->dumplength);
fprintf(f, " Dump Length: %lldB (%lld MB)\n", (long long)dumplen,
(long long)(dumplen >> 20));