diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2018-12-17 07:25:26 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2018-12-17 07:25:26 +0530 |
commit | d360b08eb082c7d17573d5272a15cf26858cf604 (patch) | |
tree | 165db1a19e1435dcfac92369cd2848f5cfe11f87 /src | |
parent | c8938df8f464e9ee5d325c32cf2a9fe98a82616c (diff) | |
download | nnn-d360b08eb082c7d17573d5272a15cf26858cf604.tar.gz |
Fix #164
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 |