Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Fix debug code to not use uninitialised variables.
details: https://anonhg.NetBSD.org/src/rev/9b96d3eaeb86
branches: trunk
changeset: 788838:9b96d3eaeb86
user: skrll <skrll%NetBSD.org@localhost>
date: Tue Jul 23 07:03:16 2013 +0000
description:
Fix debug code to not use uninitialised variables.
diffstat:
sys/kern/sysv_msg.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r c69fc6b9fdbb -r 9b96d3eaeb86 sys/kern/sysv_msg.c
--- a/sys/kern/sysv_msg.c Tue Jul 23 02:13:06 2013 +0000
+++ b/sys/kern/sysv_msg.c Tue Jul 23 07:03:16 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysv_msg.c,v 1.63 2012/03/13 18:40:54 elad Exp $ */
+/* $NetBSD: sysv_msg.c,v 1.64 2013/07/23 07:03:16 skrll Exp $ */
/*-
* Copyright (c) 1999, 2006, 2007 The NetBSD Foundation, Inc.
@@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysv_msg.c,v 1.63 2012/03/13 18:40:54 elad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysv_msg.c,v 1.64 2013/07/23 07:03:16 skrll Exp $");
#define SYSVMSG
@@ -656,8 +656,8 @@
kmsq_t *msq;
short next;
- MSG_PRINTF(("call to msgsnd(%d, %p, %lld, %d)\n", msqid, user_msgp,
- (long long)msgsz, msgflg));
+ MSG_PRINTF(("call to msgsnd(%d, %p, %lld, %d)\n", msqidr,
+ user_msgp, (long long)msgsz, msgflg));
if ((ssize_t)msgsz < 0)
return EINVAL;
@@ -966,7 +966,7 @@
kmsq_t *msq;
short next;
- MSG_PRINTF(("call to msgrcv(%d, %p, %lld, %ld, %d)\n", msqid,
+ MSG_PRINTF(("call to msgrcv(%d, %p, %lld, %ld, %d)\n", msqidr,
user_msgp, (long long)msgsz, msgtyp, msgflg));
if ((ssize_t)msgsz < 0)
Home |
Main Index |
Thread Index |
Old Index