OSDN Git Service

mei: debugfs: display also connectionless clients
authorTomas Winkler <tomas.winkler@intel.com>
Tue, 28 Oct 2014 07:39:39 +0000 (09:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Nov 2014 23:54:45 +0000 (15:54 -0800)
<debugfs>meiX/meclients: display also fixed/connectionless clients

Use better name for fixed client field:
fixed_address is boolean and indicates whether a client
is fixed or dynamic.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/debugfs.c

index ce15667..b60b426 100644 (file)
@@ -34,7 +34,7 @@ static ssize_t mei_dbgfs_read_meclients(struct file *fp, char __user *ubuf,
        int pos = 0;
        int ret;
 
-#define HDR "  |id|addr|         UUID                       |con|msg len|sb|\n"
+#define HDR "  |id|fix|         UUID                       |con|msg len|sb|\n"
 
        mutex_lock(&dev->device_lock);
 
@@ -56,12 +56,8 @@ static ssize_t mei_dbgfs_read_meclients(struct file *fp, char __user *ubuf,
 
        list_for_each_entry(me_cl, &dev->me_clients, list) {
 
-               /* skip me clients that cannot be connected */
-               if (me_cl->props.max_number_of_connections == 0)
-                       continue;
-
                pos += scnprintf(buf + pos, bufsz - pos,
-                       "%2d|%2d|%4d|%pUl|%3d|%7d|%2d|\n",
+                       "%2d|%2d|%3d|%pUl|%3d|%7d|%2d|\n",
                        i++, me_cl->client_id,
                        me_cl->props.fixed_address,
                        &me_cl->props.protocol_name,