Module: xenomai-jki
Branch: for-upstream
Commit: 99d3b960282fc75515284bab9a7fe2f7723c5905
URL:    
http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=99d3b960282fc75515284bab9a7fe2f7723c5905

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Fri Aug 20 14:51:18 2010 +0200

RTDM: Extend device name space in open_fildes proc output

Device names can be up to 31 characters long.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 ksrc/skins/rtdm/proc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ksrc/skins/rtdm/proc.c b/ksrc/skins/rtdm/proc.c
index b1089d5..72a2c13 100644
--- a/ksrc/skins/rtdm/proc.c
+++ b/ksrc/skins/rtdm/proc.c
@@ -205,7 +205,7 @@ static struct xnvfile_regular proto_vfile = {
 static void *openfd_begin(struct xnvfile_regular_iterator *it)
 {
        if (it->pos == 0)
-               xnvfile_puts(it, "Index\tLocked\tDevice\t\tOwner [PID]\n");
+               xnvfile_puts(it, "Index\tLocked\tDevice\t\t\t\tOwner [PID]\n");
 
        return it;      /* Whatever non-NULL pointer will do. */
 }
@@ -245,7 +245,7 @@ static int openfd_show(struct xnvfile_regular_iterator *it, 
void *data)
 
        xnlock_put_irqrestore(&rt_fildes_lock, s);
 
-       xnvfile_printf(it, "%d\t%d\t%-15s %s [%d]\n", (int)it->pos,
+       xnvfile_printf(it, "%d\t%d\t%-31s %s [%d]\n", (int)it->pos,
                       close_lock_count,
                       (device->device_flags & RTDM_NAMED_DEVICE) ?
                       device->device_name : device->proc_name,


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to