From 53943a002265d8e2b6a887eaa497a01840675693 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 2 May 2000 16:10:04 +0000 Subject: Defined format specifier `%M' which behaves as `%m', but takes the error code as an argument. Use it in socket hooks where we really shouldn't rely on errno containing the right value or even existing. --- proto/rip/rip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto/rip/rip.c') diff --git a/proto/rip/rip.c b/proto/rip/rip.c index 2826de7..f9a4483 100644 --- a/proto/rip/rip.c +++ b/proto/rip/rip.c @@ -75,7 +75,7 @@ rip_tx_err( sock *s, int err ) { struct rip_connection *c = s->data; struct proto *p = c->proto; - log( L_ERR "Unexpected error at rip transmit: %m" ); + log( L_ERR "Unexpected error at rip transmit: %M", err ); } static int -- cgit v1.2.3