fix: making lsof show devies and loaded .so file names correctly

Change-Id: I4b6f2e0015f8cfa18400fa4bd08460a07e29a51b
This commit is contained in:
Dmitriy Ivanov 2014-03-04 11:17:57 -08:00
parent 858d0dd1e5
commit 7c1fc0ed42

View file

@ -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"))