aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-12-17 07:25:26 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-12-17 07:25:26 +0530
commitd360b08eb082c7d17573d5272a15cf26858cf604 (patch)
tree165db1a19e1435dcfac92369cd2848f5cfe11f87 /src
parentc8938df8f464e9ee5d325c32cf2a9fe98a82616c (diff)
downloadnnn-d360b08eb082c7d17573d5272a15cf26858cf604.tar.gz
Fix #164
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 46eec7c..175faed 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -1913,12 +1913,11 @@ static bool show_stats(char *fpath, char *fname, struct stat *sb)
#endif
/* Show containing device, inode, hardlink count */
+ snprintf(g_buf, 32, "%lxh/%lud", (ulong)sb->st_dev, (ulong)sb->st_dev);
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__)
- snprintf(g_buf, 32, "%xh/%ud", sb->st_dev, sb->st_dev);
dprintf(fd, "\n Device: %-15s Inode: %-11llu Links: %-9hu",
g_buf, (unsigned long long)sb->st_ino, sb->st_nlink);
#else
- snprintf(g_buf, 32, "%lxh/%lud", (ulong)sb->st_dev, (ulong)sb->st_dev);
dprintf(fd, "\n Device: %-15s Inode: %-11lu Links: %-9lu",
g_buf, sb->st_ino, (ulong)sb->st_nlink);
#endif