diff options
author | phk <phk@FreeBSD.org> | 2002-04-09 15:17:59 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-04-09 15:17:59 +0000 |
commit | c2f17d16c728a0248466b433fc6c8ad52023ac3d (patch) | |
tree | 80167139c3f1b14de753f1e6029b8d55912daa5d /sys/geom | |
parent | 7071088894de2c78b786fc901daff03b42c1ec50 (diff) | |
download | FreeBSD-src-c2f17d16c728a0248466b433fc6c8ad52023ac3d.zip FreeBSD-src-c2f17d16c728a0248466b433fc6c8ad52023ac3d.tar.gz |
Various stylistic nit picking.
Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/geom_dev.c | 4 | ||||
-rw-r--r-- | sys/geom/geom_pc98.c | 16 | ||||
-rw-r--r-- | sys/geom/geom_sunlabel.c | 12 |
3 files changed, 16 insertions, 16 deletions
diff --git a/sys/geom/geom_dev.c b/sys/geom/geom_dev.c index 7538fa7..a2deec1 100644 --- a/sys/geom/geom_dev.c +++ b/sys/geom/geom_dev.c @@ -148,14 +148,14 @@ g_dev_taste(struct g_class *mp, struct g_provider *pp, int insist __unused) error = g_io_getattr("GEOM::sectorsize", cp, &j, &secsize); if (error) { secsize = 512; - printf("g_bsd_taste: error %d Sectors are %d bytes\n", + printf("g_dev_taste: error %d Sectors are %d bytes\n", error, secsize); } j = sizeof mediasize; error = g_io_getattr("GEOM::mediasize", cp, &j, &mediasize); if (error) { mediasize = 0; - printf("g_error %d Mediasize is %lld bytes\n", + printf("g_dev_taste: %d Mediasize is %lld bytes\n", error, (long long)mediasize); } g_topology_lock(); diff --git a/sys/geom/geom_pc98.c b/sys/geom/geom_pc98.c index 9cc46a8..ce5e181 100644 --- a/sys/geom/geom_pc98.c +++ b/sys/geom/geom_pc98.c @@ -92,7 +92,7 @@ g_pc98_taste(struct g_class *mp, struct g_provider *pp, int flags) int error, i, j, npart; u_char *buf; struct g_pc98_softc *ms; - u_int secsize, u, v; + u_int sectorsize, u, v; u_int fwsect, fwhead; off_t mediasize, start, length; @@ -110,12 +110,12 @@ g_pc98_taste(struct g_class *mp, struct g_provider *pp, int flags) while (1) { /* a trick to allow us to use break */ if (gp->rank != 2 && flags == G_TF_NORMAL) break; - j = sizeof secsize; - error = g_io_getattr("GEOM::sectorsize", cp, &j, &secsize); + j = sizeof sectorsize; + error = g_io_getattr("GEOM::sectorsize", cp, &j, §orsize); if (error) { - secsize = 512; + sectorsize = 512; printf("g_pc98_taste: error %d Sectors are %d bytes\n", - error, secsize); + error, sectorsize); } j = sizeof mediasize; error = g_io_getattr("GEOM::mediasize", cp, &j, &mediasize); @@ -139,7 +139,7 @@ g_pc98_taste(struct g_class *mp, struct g_provider *pp, int flags) error, fwhead); } buf = g_read_data(cp, 0, - secsize < 1024 ? 1024 : secsize, &error); + sectorsize < 1024 ? 1024 : sectorsize, &error); if (buf == NULL || error != 0) break; @@ -157,8 +157,8 @@ g_pc98_taste(struct g_class *mp, struct g_provider *pp, int flags) continue; printf("Index: %d\n", i); g_hexdump(buf+512 + i * 32, 32); - start = v * fwsect * fwhead * secsize; - length = (u - v) * fwsect * fwhead * secsize; + start = v * fwsect * fwhead * sectorsize; + length = (u - v) * fwsect * fwhead * sectorsize; printf("c%d - c%d (%llx - %llx) = %s\n", v, u, start, length, buf + 512 + 16 + i * 32); npart++; diff --git a/sys/geom/geom_sunlabel.c b/sys/geom/geom_sunlabel.c index d31dad3..78d9c87 100644 --- a/sys/geom/geom_sunlabel.c +++ b/sys/geom/geom_sunlabel.c @@ -92,7 +92,7 @@ g_sunlabel_taste(struct g_class *mp, struct g_provider *pp, int flags) int error, i, j, npart; u_char *buf; struct g_sunlabel_softc *ms; - u_int secsize, u, v, csize; + u_int sectorsize, u, v, csize; off_t mediasize; g_trace(G_T_TOPOLOGY, "g_sunlabel_taste(%s,%s)", mp->name, pp->name); @@ -109,12 +109,12 @@ g_sunlabel_taste(struct g_class *mp, struct g_provider *pp, int flags) while (1) { /* a trick to allow us to use break */ if (gp->rank != 2 && flags == G_TF_NORMAL) break; - j = sizeof secsize; - error = g_io_getattr("GEOM::sectorsize", cp, &j, &secsize); + j = sizeof sectorsize; + error = g_io_getattr("GEOM::sectorsize", cp, &j, §orsize); if (error) { - secsize = 512; + sectorsize = 512; printf("g_sunlabel_taste: error %d Sectors are %d bytes\n", - error, secsize); + error, sectorsize); } j = sizeof mediasize; error = g_io_getattr("GEOM::mediasize", cp, &j, &mediasize); @@ -123,7 +123,7 @@ g_sunlabel_taste(struct g_class *mp, struct g_provider *pp, int flags) printf("g_error %d Mediasize is %lld bytes\n", error, (long long)mediasize); } - buf = g_read_data(cp, 0, secsize, &error); + buf = g_read_data(cp, 0, sectorsize, &error); if (buf == NULL || error != 0) break; |