Module: xenomai-jki
Branch: queues/proc
Commit: 7bf336f2d6dcf41a4af423498665e05865fb7c54
URL:    
http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=7bf336f2d6dcf41a4af423498665e05865fb7c54

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Sun Apr 11 19:22:56 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 e83c0c4..20c9ad8 100644
--- a/ksrc/skins/rtdm/proc.c
+++ b/ksrc/skins/rtdm/proc.c
@@ -146,7 +146,7 @@ static int open_fildes_seq_show(struct seq_file *seq, void 
*v)
        spl_t s;
 
        if (v == SEQ_START_TOKEN) {
-               seq_printf(seq, "Index\tLocked\tDevice\t\tOwner [PID]\n");
+               seq_printf(seq, "Index\tLocked\tDevice\t\t\t\tOwner [PID]\n");
                return 0;
        }
 
@@ -173,7 +173,7 @@ static int open_fildes_seq_show(struct seq_file *seq, void 
*v)
 
        xnlock_put_irqrestore(&rt_fildes_lock, s);
 
-       seq_printf(seq, "%d\t%d\t%-15s %s [%d]\n",
+       seq_printf(seq, "%d\t%d\t%-31s %s [%d]\n",
                   (int)(fildes - fildes_table), 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