summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-06-09 03:54:42 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-06-09 03:54:42 +0000
commitbb50e26a8975618fa054307aaa319d29843dd811 (patch)
tree2b641fcb9b8854c32873f1b1f68dc064073a91c0 /sys
parentc450b0111f296649c2939525553126ffa0cca4ba (diff)
print return value for debugging purposes
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/hppa/stand/libsa/lif.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/hppa/stand/libsa/lif.c b/sys/arch/hppa/stand/libsa/lif.c
index 993195f3cef..8939f7fd212 100644
--- a/sys/arch/hppa/stand/libsa/lif.c
+++ b/sys/arch/hppa/stand/libsa/lif.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lif.c,v 1.6 1999/05/31 02:41:11 todd Exp $ */
+/* $OpenBSD: lif.c,v 1.7 2001/06/09 03:54:41 mickey Exp $ */
/*
* Copyright (c) 1998 Michael Shalayeff
@@ -57,7 +57,7 @@ lif_open (path, f)
{
register struct file *fp;
register struct lifdir *dp;
- register char *p = NULL, *q = NULL; /* XXX shut up gcc */
+ register char *p, *q;
struct lif_load load;
int err, buf_size, l;
@@ -141,6 +141,10 @@ lif_open (path, f)
free (fp, sizeof(*fp));
f->f_fsdata = NULL;
}
+#ifdef LIFDEBUG
+ if (debug)
+ printf("ret(%d)\n", err);
+#endif
return err;
}