summaryrefslogtreecommitdiff
path: root/proto/rip/rip.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-05-02 16:10:04 +0000
committerMartin Mares <mj@ucw.cz>2000-05-02 16:10:04 +0000
commit53943a002265d8e2b6a887eaa497a01840675693 (patch)
tree66897b24d24a3840d880c11f89a208981c23bf9e /proto/rip/rip.c
parent85368cd4b7244535f6ce56a27f6d22ddfa2bf4e6 (diff)
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.
Diffstat (limited to 'proto/rip/rip.c')
-rw-r--r--proto/rip/rip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c
index 2826de7f..f9a44835 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