Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
fix: making lsof show devies and loaded .so file names correctly
Browse files Browse the repository at this point in the history
Change-Id: I4b6f2e0015f8cfa18400fa4bd08460a07e29a51b
  • Loading branch information
dimitry- committed Mar 4, 2014
1 parent 858d0dd commit 7c1fc0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolbox/lsof.c
Expand Up @@ -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"))
Expand Down

0 comments on commit 7c1fc0e

Please sign in to comment.