Date: Sat, 23 Oct 2004 17:14:05 +0200 From: "Poul-Henning Kamp" <phk@phk.freebsd.dk> To: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/tools/tools/recoverdisk recoverdisk.c Message-ID: <75618.1098544445@critter.freebsd.dk> In-Reply-To: Your message of "Sat, 23 Oct 2004 17:10:56 %2B0200." <xzpekjph3lr.fsf@dwp.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
Go for it.
In message <xzpekjph3lr.fsf@dwp.des.no>, =?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=
writes:
>--=-=-=
>Content-Type: text/plain; charset=iso-8859-1
>Content-Transfer-Encoding: quoted-printable
>
>Poul-Henning Kamp <phk@FreeBSD.org> writes:
>> Log:
>> Stop amd64 warnings.
>
>Better patch attached.
>
>DES
>--=20
>Dag-Erling Sm=F8rgrav - des@des.no
>
>
>--=-=-=
>Content-Type: text/x-patch
>Content-Disposition: attachment; filename=recoverdisk.diff
>
>Index: recoverdisk.c
>===================================================================
>RCS file: /home/ncvs/src/tools/tools/recoverdisk/recoverdisk.c,v
>retrieving revision 1.3
>diff -u -r1.3 recoverdisk.c
>--- recoverdisk.c 23 Oct 2004 12:42:18 -0000 1.3
>+++ recoverdisk.c 23 Oct 2004 15:09:58 -0000
>@@ -103,9 +103,9 @@
> i = sectorsize;
> time(&t2);
> if (t1 != t2 || lp->len < BIGSIZE) {
>- printf("\r%13jd %7jd %13jd %3d %13jd %13jd %.8f",
>+ printf("\r%13jd %7zd %13jd %3d %13jd %13jd %.8f",
> (intmax_t)lp->start,
>- (intmax_t)i,
>+ i,
> (intmax_t)lp->len,
> lp->state,
> (intmax_t)d,
>@@ -125,14 +125,13 @@
> else
> j = i;
> if (j != i)
>- printf("\nWrite error at %jd/%jd\n",
>- lp->start, (intmax_t)i);
>+ printf("\nWrite error at %jd/%zd\n",
>+ lp->start, i);
> lp->start += i;
> lp->len -= i;
> continue;
> }
>- printf("\n%jd %jd failed %d\n",
>- lp->start, (intmax_t)i, errno);
>+ printf("\n%jd %zd failed %d\n", lp->start, i, errno);
> new_lump(lp->start, i, lp->state + 1);
> lp->start += i;
> lp->len -= i;
>
>--=-=-=--
>
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?75618.1098544445>
