Date: Tue, 3 Dec 2019 22:53:07 +0000 (UTC) From: Ravi Pokala <rpokala@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r355364 - stable/12/stand/libsa Message-ID: <201912032253.xB3Mr7XJ010119@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rpokala Date: Tue Dec 3 22:53:07 2019 New Revision: 355364 URL: https://svnweb.freebsd.org/changeset/base/355364 Log: MFC r354673: Logging improvements to loader::nfs Include the server IP address when logging nfs_open(), add a few missing "\n"s, and correct a typo. Modified: stable/12/stand/libsa/nfs.c Directory Properties: stable/12/ (props changed) Modified: stable/12/stand/libsa/nfs.c ============================================================================== --- stable/12/stand/libsa/nfs.c Tue Dec 3 22:51:25 2019 (r355363) +++ stable/12/stand/libsa/nfs.c Tue Dec 3 22:53:07 2019 (r355364) @@ -486,7 +486,8 @@ nfs_open(const char *upath, struct open_file *f) #ifdef NFS_DEBUG if (debug) - printf("nfs_open: %s (rootpath=%s)\n", upath, rootpath); + printf("nfs_open: %s (rootip=%s rootpath=%s)\n", upath, + inet_ntoa(rootip), rootpath); #endif if (!rootpath[0]) { printf("no rootpath, no nfs\n"); @@ -691,14 +692,14 @@ nfs_read(struct open_file *f, void *buf, size_t size, if (cc == -1) { #ifdef NFS_DEBUG if (debug) - printf("nfs_read: read: %s", strerror(errno)); + printf("nfs_read: read: %s\n", strerror(errno)); #endif return (errno); /* XXX - from nfs_readdata */ } if (cc == 0) { #ifdef NFS_DEBUG if (debug) - printf("nfs_read: hit EOF unexpectantly"); + printf("nfs_read: hit EOF unexpectedly\n"); #endif goto ret; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912032253.xB3Mr7XJ010119>