From 20b69eca3931d338b09134b9c1f5dee2c49ca55b Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Tue, 8 Sep 2009 17:32:26 -0400 Subject: [PATCH] PR10575: emit KERN_ERRORs on transport control message failures Suspecting that some kernel->user control messages may be getting lost, let's more robustly log these occurrences. * runtime/transport/control.c (_stp_ctl_send): printk(KERN_ERROR) instead of ignoring errors. --- runtime/transport/control.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runtime/transport/control.c b/runtime/transport/control.c index 925a6768a..2b3683202 100644 --- a/runtime/transport/control.c +++ b/runtime/transport/control.c @@ -173,6 +173,9 @@ static int _stp_ctl_send(int type, void *data, int len) msleep(5); if (err > 0) wake_up_interruptible(&_stp_ctl_wq); + else + // printk instead of _stp_error since an error here means our transport is suspect + printk(KERN_ERROR "ctl_send (type=%d len=%d) failed: %d\n", type, len, err); dbug_trans(1, "returning %d\n", err); return err; } -- 2.43.5