Skip to content

Commit 892068d

Browse files
committed
CP-311880 don't use perror
Don't use perror() in a library; leave it to the client. Signed-off-by: Christian Lindig <christian.lindig@citrix.com>
1 parent afbbff9 commit 892068d

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

ocaml-evtchn/lib/eventchn_stubs.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ stub_evtchn_init (value cloexec)
7575

7676
if (xce == NULL)
7777
{
78-
perror (__func__);
7978
caml_failwith (strerror (errno));
8079
}
8180

@@ -94,7 +93,6 @@ stub_evtchn_fd (value xce_val)
9493
fd = xenevtchn_fd (xce);
9594
if (fd == -1)
9695
{
97-
perror (__func__);
9896
caml_failwith (strerror (errno));
9997
}
10098

@@ -115,7 +113,6 @@ stub_evtchn_notify (value xce_val, value port_val)
115113

116114
if (rc == -1)
117115
{
118-
perror (__func__);
119116
caml_failwith (strerror (errno));
120117
}
121118

@@ -138,7 +135,6 @@ stub_evtchn_bind_interdomain (value xce_val, value domid_val,
138135

139136
if (rc == -1)
140137
{
141-
perror (__func__);
142138
caml_failwith (strerror (errno));
143139
}
144140

@@ -158,7 +154,6 @@ stub_evtchn_alloc_unbound (value xce_val, value remote_domid_val)
158154
caml_acquire_runtime_system ();
159155
if (rc == -1)
160156
{
161-
perror (__func__);
162157
caml_failwith (strerror (errno));
163158
}
164159

@@ -186,7 +181,6 @@ stub_evtchn_bind_virq (value xce_val, value virq_val)
186181
caml_acquire_runtime_system ();
187182
if (rc == -1)
188183
{
189-
perror (__func__);
190184
caml_failwith (strerror (errno));
191185
}
192186

@@ -206,7 +200,6 @@ stub_evtchn_unbind (value xce_val, value port_val)
206200
caml_acquire_runtime_system ();
207201
if (rc == -1)
208202
{
209-
perror (__func__);
210203
caml_failwith (strerror (errno));
211204
}
212205

@@ -228,7 +221,6 @@ stub_evtchn_pending (value xce_val)
228221
caml_acquire_runtime_system ();
229222
if (port == -1)
230223
{
231-
perror (__func__);
232224
caml_failwith (strerror (errno));
233225
}
234226

@@ -251,7 +243,6 @@ stub_evtchn_unmask (value xce_val, value port_val)
251243
caml_acquire_runtime_system ();
252244
if (rc == -1)
253245
{
254-
perror (__func__);
255246
caml_failwith (strerror (errno));
256247
}
257248

0 commit comments

Comments
 (0)