summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-07-15 11:43:53 -0400
committermidipix <writeonce@midipix.org>2018-07-15 12:18:48 -0400
commit8cdeff88d4dac06c0d6b60e4c816e40ea00f99e6 (patch)
tree9b7c249d3e9581d157910e2278f9e7272e227218
parent1a5016799b41e0cca267a813c57bd911f999b2a9 (diff)
downloadntux-8cdeff88d4dac06c0d6b60e4c816e40ea00f99e6.tar.bz2
ntux-8cdeff88d4dac06c0d6b60e4c816e40ea00f99e6.tar.xz
ntux_cmd_stat(): restrict to pure fdio via use of ntux_dprintf().
-rw-r--r--src/cmds/ntux_cmd_stat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmds/ntux_cmd_stat.c b/src/cmds/ntux_cmd_stat.c
index 38076b3..63f82cd 100644
--- a/src/cmds/ntux_cmd_stat.c
+++ b/src/cmds/ntux_cmd_stat.c
@@ -113,10 +113,10 @@ int ntux_cmd_stat(const struct ntux_driver_ctx * dctx, const char * dunit)
fd,ofd,buf,sbuf,
NTUX_NATIVE_ERROR(dctx,status));
- ntux_fprintf(stdout,"fname: %s\n",str);
+ ntux_dprintf(STDOUT_FILENO,"fname: %s\n",str);
/* inode */
- ntux_fprintf(stdout,"inode: 0x%p (%lld)\n",st.st_ino,st.st_ino);
+ ntux_dprintf(STDOUT_FILENO,"inode: 0x%p (%lld)\n",st.st_ino,st.st_ino);
/* all done */
return ntux_cmd_stat_ret(fd,ofd,buf,sbuf,0);