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

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 f898608..4c91368 100644
--- a/ksrc/skins/rtdm/proc.c
+++ b/ksrc/skins/rtdm/proc.c
@@ -227,7 +227,7 @@ static int openfd_show(struct xnvfile_regular_iterator *it, 
void *data)
        spl_t s;
 
        if (data == NULL) {
-               xnvfile_puts(it, "Index\tLocked\tDevice\t\tOwner [PID]\n");
+               xnvfile_puts(it, "Index\tLocked\tDevice\t\t\t\tOwner [PID]\n");
                return 0;
        }
 
@@ -252,7 +252,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", fd,
+       xnvfile_printf(it, "%d\t%d\t%-31s %s [%d]\n", fd,
                       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