Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Nov 2011 23:08:17 +0100
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Garrett Cooper <yanegomi@gmail.com>
Cc:        svn-src-head@freebsd.org, Alexander Motin <mav@freebsd.org>, src-committers@freebsd.org, svn-src-all@freebsd.org
Subject:   Re: svn commit: r227473 - head/sbin/geom/class/multipath
Message-ID:  <20111113220817.GC1677@garage.freebsd.pl>
In-Reply-To: <CAGH67wScn5fvZ-ZFkcPDTkhxF9K2isWMQHA7wsHiy5PihidZCA@mail.gmail.com>
References:  <201111122001.pACK1UML059238@svn.freebsd.org> <CAGH67wScn5fvZ-ZFkcPDTkhxF9K2isWMQHA7wsHiy5PihidZCA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Sat, Nov 12, 2011 at 12:16:23PM -0800, Garrett Cooper wrote:
> On Sat, Nov 12, 2011 at 12:01 PM, Alexander Motin <mav@freebsd.org> wrote:
> > Author: mav
> > Date: Sat Nov 12 20:01:30 2011
> > New Revision: 227473
> > URL: http://svn.freebsd.org/changeset/base/227473
> >
> > Log:
> >  Fix build on some archs after r227464.
> >
> > Modified:
> >  head/sbin/geom/class/multipath/geom_multipath.c
> >
> > Modified: head/sbin/geom/class/multipath/geom_multipath.c
> > ==============================================================================
> > --- head/sbin/geom/class/multipath/geom_multipath.c     Sat Nov 12 19:55:48 2011        (r227472)
> > +++ head/sbin/geom/class/multipath/geom_multipath.c     Sat Nov 12 20:01:30 2011        (r227473)
> > @@ -133,7 +133,8 @@ mp_label(struct gctl_req *req)
> >        uint8_t *sector, *rsector;
> >        char *ptr;
> >        uuid_t uuid;
> > -       uint32_t secsize = 0, ssize, status;
> > +       ssize_t secsize = 0, ssize;
> > +       uint32_t status;
> >        const char *name, *name2, *mpname;
> >        int error, i, nargs, fd;
> >
> > @@ -161,8 +162,8 @@ mp_label(struct gctl_req *req)
> >                        disksize = msize;
> >                } else {
> >                        if (secsize != ssize) {
> > -                               gctl_error(req, "%s sector size %u different.",
> > -                                   name, ssize);
> > +                               gctl_error(req, "%s sector size %ju different.",
> > +                                   name, (intmax_t)ssize);
> 
> Shouldn't that be uintmax_t, not intmax_t ?

No, ssize_t is signed. Although the best would be to use %zd for
ssize_t.

-- 
Pawel Jakub Dawidek                       http://www.wheelsystems.com
FreeBSD committer                         http://www.FreeBSD.org
Am I Evil? Yes, I Am!                     http://yomoli.com

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iEYEARECAAYFAk7AP9EACgkQForvXbEpPzQ7wwCffcAZNzJKHhNaOOqM/9MdR97D
lw8AoPMt9npvACECUTj0pj+Olpw4XVb9
=pE42
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111113220817.GC1677>