lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1274917192-16962-8-git-send-email-mike@mikeasoft.com>
Date:	Thu, 27 May 2010 00:39:45 +0100
From:	Mike Sheldon <mike@...easoft.com>
To:	greg@...ah.com, pavel@....cz
Cc:	devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
	Mike Sheldon <mike@...easoft.com>
Subject: [PATCH 08/15] Staging: winbond: Replace printk usage with pr_info/pr_err

Patches wb35rx.c to replace printk usage (missing KERN_ levels) with appropriate pr_info and pr_err calls.

Signed-off-by: Mike Sheldon <mike@...easoft.com>
---
 drivers/staging/winbond/wb35rx.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/staging/winbond/wb35rx.c b/drivers/staging/winbond/wb35rx.c
index efe82b1..38ad5bd 100644
--- a/drivers/staging/winbond/wb35rx.c
+++ b/drivers/staging/winbond/wb35rx.c
@@ -28,7 +28,7 @@ static void packet_came(struct ieee80211_hw *hw, char *pRxBufferAddress, int Pac
 
 	skb = dev_alloc_skb(PacketSize);
 	if (!skb) {
-		printk("Not enough memory for packet, FIXME\n");
+		pr_err("Not enough memory for packet, FIXME\n");
 		return;
 	}
 
@@ -110,7 +110,7 @@ static u16 Wb35Rx_indicate(struct ieee80211_hw *hw)
 			/* Basic check for Rx length. Is length valid? */
 			if (PacketSize > MAX_PACKET_SIZE) {
 #ifdef _PE_RX_DUMP_
-				printk("Serious ERROR : Rx data size too long, size =%d\n", PacketSize);
+				pr_err("Serious ERROR : Rx data size too long, size =%d\n", PacketSize);
 #endif
 
 				pWb35Rx->EP3vm_state = VM_STOP;
@@ -187,7 +187,7 @@ static void Wb35Rx_Complete(struct urb *urb)
 	/* The URB is completed, check the result */
 	if (pWb35Rx->EP3VM_status != 0) {
 #ifdef _PE_USB_STATE_DUMP_
-		printk("EP3 IoCompleteRoutine return error\n");
+		pr_err("EP3 IoCompleteRoutine return error\n");
 #endif
 		pWb35Rx->EP3vm_state = VM_STOP;
 		goto error;
@@ -250,7 +250,7 @@ static void Wb35Rx(struct ieee80211_hw *hw)
 	if (!pWb35Rx->RxOwner[RxBufferId]) {
 		/* It's impossible to run here. */
 #ifdef _PE_RX_DUMP_
-		printk("Rx driver fifo unavailable\n");
+		pr_err("Rx driver fifo unavailable\n");
 #endif
 		goto error;
 	}
@@ -263,7 +263,7 @@ static void Wb35Rx(struct ieee80211_hw *hw)
 
 	pWb35Rx->pDRx = kzalloc(MAX_USB_RX_BUFFER, GFP_ATOMIC);
 	if (!pWb35Rx->pDRx) {
-		printk("w35und: Rx memory alloc failed\n");
+		pr_err("w35und: Rx memory alloc failed\n");
 		goto error;
 	}
 	pRxBufferAddress = pWb35Rx->pDRx;
@@ -278,7 +278,7 @@ static void Wb35Rx(struct ieee80211_hw *hw)
 	retv = usb_submit_urb(urb, GFP_ATOMIC);
 
 	if (retv != 0) {
-		printk("Rx URB sending error\n");
+		pr_err("Rx URB sending error\n");
 		goto error;
 	}
 	return;
@@ -338,7 +338,7 @@ void Wb35Rx_stop(struct hw_data *pHwData)
 	if (pWb35Rx->EP3vm_state == VM_RUNNING) {
 		usb_unlink_urb(pWb35Rx->RxUrb); /* Only use unlink, let Wb35Rx_destroy to free them */
 #ifdef _PE_RX_DUMP_
-		printk("EP3 Rx stop\n");
+		pr_info("EP3 Rx stop\n");
 #endif
 	}
 }
@@ -356,7 +356,7 @@ void Wb35Rx_destroy(struct hw_data *pHwData)
 	if (pWb35Rx->RxUrb)
 		usb_free_urb(pWb35Rx->RxUrb);
 #ifdef _PE_RX_DUMP_
-	printk("Wb35Rx_destroy OK\n");
+	pr_info("Wb35Rx_destroy OK\n");
 #endif
 }
 
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ