Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ata fix typo that prevented bytes/physsect reporting...
details: https://anonhg.NetBSD.org/src/rev/b2fe2669b777
branches: trunk
changeset: 955415:b2fe2669b777
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Mon Sep 28 12:47:49 2020 +0000
description:
fix typo that prevented bytes/physsect reporting from working
diffstat:
sys/dev/ata/wd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 76880ad0283c -r b2fe2669b777 sys/dev/ata/wd.c
--- a/sys/dev/ata/wd.c Mon Sep 28 12:15:23 2020 +0000
+++ b/sys/dev/ata/wd.c Mon Sep 28 12:47:49 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wd.c,v 1.464 2020/09/27 16:58:11 christos Exp $ */
+/* $NetBSD: wd.c,v 1.465 2020/09/28 12:47:49 jakllsch Exp $ */
/*
* Copyright (c) 1998, 2001 Manuel Bouyer. All rights reserved.
@@ -54,7 +54,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.464 2020/09/27 16:58:11 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.465 2020/09/28 12:47:49 jakllsch Exp $");
#include "opt_ata.h"
#include "opt_wd.h"
@@ -453,7 +453,7 @@
wd->sc_blksize, (unsigned long long)wd->sc_capacity);
if (wd->sc_sectoralign.dsa_alignment != 1) {
aprint_normal(" (%d bytes/physsect",
- wd->sc_sectoralign.dsa_alignment & wd->sc_blksize);
+ wd->sc_sectoralign.dsa_alignment * wd->sc_blksize);
if (wd->sc_sectoralign.dsa_firstaligned != 0) {
aprint_normal("; first aligned sector: %jd",
(intmax_t)wd->sc_sectoralign.dsa_firstaligned);
Home |
Main Index |
Thread Index |
Old Index