diff options
author | pjd <pjd@FreeBSD.org> | 2010-10-26 22:46:15 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2010-10-26 22:46:15 +0000 |
commit | b2b33bde8b4ab5923ee511c30ca0c1fb90d17083 (patch) | |
tree | ed47be5d8b4559c3a6e078da5714156cd2432c23 /sbin | |
parent | 33dc8ca368e92770be0d2334f4d037264d82f7af (diff) | |
download | FreeBSD-src-b2b33bde8b4ab5923ee511c30ca0c1fb90d17083.zip FreeBSD-src-b2b33bde8b4ab5923ee511c30ca0c1fb90d17083.tar.gz |
Use fprintf(stderr) instead of gctl_error() to print a warning about too
big sector size. When gctl error is set gctl_has_param() always returns
'false', which prevents geli(8) from finding some arguments and also masks
an error, which is generates in such case.
MFC after: 3 days
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/geom/class/eli/geom_eli.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/geom/class/eli/geom_eli.c b/sbin/geom/class/eli/geom_eli.c index 984d489..e29c788 100644 --- a/sbin/geom/class/eli/geom_eli.c +++ b/sbin/geom/class/eli/geom_eli.c @@ -749,8 +749,8 @@ eli_init(struct gctl_req *req) return; } if (val > sysconf(_SC_PAGE_SIZE)) { - gctl_error(req, "warning: Using sectorsize bigger than " - "the page size!"); + fprintf(stderr, + "warning: Using sectorsize bigger than the page size!\n"); } md.md_sectorsize = val; } |