Module Name: src
Committed By: jakllsch
Date: Mon Sep 28 12:47:49 UTC 2020
Modified Files:
src/sys/dev/ata: wd.c
Log Message:
fix typo that prevented bytes/physsect reporting from working
To generate a diff of this commit:
cvs rdiff -u -r1.464 -r1.465 src/sys/dev/ata/wd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ata/wd.c
diff -u src/sys/dev/ata/wd.c:1.464 src/sys/dev/ata/wd.c:1.465
--- src/sys/dev/ata/wd.c:1.464 Sun Sep 27 16:58:11 2020
+++ src/sys/dev/ata/wd.c Mon Sep 28 12:47:49 2020
@@ -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 @@ wdattach(device_t parent, device_t self,
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);