Module Name:    src
Committed By:   hannken
Date:           Sun May 26 10:21:33 UTC 2019

Modified Files:
        src/sys/sys: ioccom.h

Log Message:
Fix IOCSNPRINTF(), 'R' and 'W' were reversed.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/sys/ioccom.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/ioccom.h
diff -u src/sys/sys/ioccom.h:1.12 src/sys/sys/ioccom.h:1.13
--- src/sys/sys/ioccom.h:1.12	Wed Dec 10 00:16:05 2014
+++ src/sys/sys/ioccom.h	Sun May 26 10:21:33 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: ioccom.h,v 1.12 2014/12/10 00:16:05 christos Exp $	*/
+/*	$NetBSD: ioccom.h,v 1.13 2019/05/26 10:21:33 hannken Exp $	*/
 
 /*-
  * Copyright (c) 1982, 1986, 1990, 1993, 1994
@@ -74,8 +74,8 @@
 
 #define IOCSNPRINTF(buf, len, cmd) \
     snprintf((buf), (len), "_IO%s%s('%c', %hhu)", \
-	(((cmd) >> 30) & 1) ? "W" : "", \
-	(((cmd) >> 30) & 2) ? "R" : "", \
+	(((cmd) >> 30) & 1) ? "R" : "", \
+	(((cmd) >> 30) & 2) ? "W" : "", \
 	(char)IOCGROUP(cmd), (unsigned char)(cmd))
 		
 

Reply via email to