summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Haley <Tim.Haley@Sun.COM>2010-07-08 19:44:07 -0600
committerTim Haley <Tim.Haley@Sun.COM>2010-07-08 19:44:07 -0600
commit6a45aeb4299937971b2d4ebd68553ee5a39fe913 (patch)
tree3cac5122caa109b7718cbedcaea9052f9b5541af
parent5203bc321053fb87d7073c7640548fab73634793 (diff)
downloadillumos-joyent-6a45aeb4299937971b2d4ebd68553ee5a39fe913.tar.gz
6967788 Allow zlook to use smaller buffers for ease of debugging
-rw-r--r--usr/src/cmd/zlook/zlook.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr/src/cmd/zlook/zlook.c b/usr/src/cmd/zlook/zlook.c
index bda9e4ace4..29a6559f90 100644
--- a/usr/src/cmd/zlook/zlook.c
+++ b/usr/src/cmd/zlook/zlook.c
@@ -20,8 +20,7 @@
*/
/*
- * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
*/
/*
@@ -54,7 +53,7 @@
#define MAXBUF (64 * 1024)
#define BIGBUF 4096
-#define LILBUF 64
+#define LILBUF (sizeof (dirent_t))
#define DIRENT_NAMELEN(reclen) \
((reclen) - (offsetof(dirent_t, d_name[0])))
@@ -266,7 +265,7 @@ main(int argc, char **argv)
if (rddir_bufsize < LILBUF || rddir_bufsize > MAXBUF) {
(void) fprintf(stderr, "Sorry, buffer size "
"must be >= %d and less than or equal to %d bytes.\n",
- LILBUF, MAXBUF);
+ (int)LILBUF, MAXBUF);
exit(EINVAL);
}