From 7c1fc0ed42609c6c44d6738e0d8ef1d4425a6758 Mon Sep 17 00:00:00 2001 From: Dmitriy Ivanov Date: Tue, 4 Mar 2014 11:17:57 -0800 Subject: [PATCH] fix: making lsof show devies and loaded .so file names correctly Change-Id: I4b6f2e0015f8cfa18400fa4bd08460a07e29a51b --- toolbox/lsof.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolbox/lsof.c b/toolbox/lsof.c index 113c120fc..af321af8c 100644 --- a/toolbox/lsof.c +++ b/toolbox/lsof.c @@ -113,7 +113,7 @@ static void print_maps(struct pid_info_t* info) if (!maps) goto out; - while (fscanf(maps, "%*x-%*x %*s %zx %5s %ld %s\n", &offset, device, &inode, + while (fscanf(maps, "%*x-%*x %*s %zx %s %ld %s\n", &offset, device, &inode, file) == 4) { // We don't care about non-file maps if (inode == 0 || !strcmp(device, "00:00"))