diff options
author | Greg Kurz <gkurz@linux.vnet.ibm.com> | 2016-01-22 15:12:17 +0100 |
---|---|---|
committer | Greg Kurz <gkurz@linux.vnet.ibm.com> | 2016-01-22 15:12:17 +0100 |
commit | 63325b181f49d06bc2201cfdd52ba92c05939f13 (patch) | |
tree | 8fa119560b36f28006a3122ae8e848516b62a684 /hw/9pfs/9p.c | |
parent | 911a4efd0caec9a9c65746a8bd78bc4fc212b379 (diff) |
9pfs: use error_report() instead of fprintf(stderr)
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Diffstat (limited to 'hw/9pfs/9p.c')
-rw-r--r-- | hw/9pfs/9p.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c index 3ff310605c..1f3bd12e0d 100644 --- a/hw/9pfs/9p.c +++ b/hw/9pfs/9p.c @@ -3370,7 +3370,7 @@ static void __attribute__((__constructor__)) v9fs_set_fd_limit(void) { struct rlimit rlim; if (getrlimit(RLIMIT_NOFILE, &rlim) < 0) { - fprintf(stderr, "Failed to get the resource limit\n"); + error_report("Failed to get the resource limit"); exit(1); } open_fd_hw = rlim.rlim_cur - MIN(400, rlim.rlim_cur/3); |