Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756302AbYK0KrE (ORCPT ); Thu, 27 Nov 2008 05:47:04 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753667AbYK0KdZ (ORCPT ); Thu, 27 Nov 2008 05:33:25 -0500 Received: from mtagate8.de.ibm.com ([195.212.29.157]:52332 "EHLO mtagate8.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753748AbYK0Kca (ORCPT ); Thu, 27 Nov 2008 05:32:30 -0500 Message-Id: <20081127103141.255592521@de.ibm.com> References: <20081127103020.528516828@de.ibm.com> User-Agent: quilt/0.46-1 Date: Thu, 27 Nov 2008 11:31:08 +0100 From: Martin Schwidefsky To: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Cc: Heiko Carstens , Melissa Howland , Martin Schwidefsky Subject: [patch 48/60] convert monwriter printks to pr_xxx macros. Content-Disposition: inline; filename=163-kmsg-monwriter.diff Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1358 Lines: 46 From: Melissa Howland Signed-off-by: Melissa Howland Signed-off-by: Martin Schwidefsky --- drivers/s390/char/monwriter.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) Index: quilt-2.6/drivers/s390/char/monwriter.c =================================================================== --- quilt-2.6.orig/drivers/s390/char/monwriter.c +++ quilt-2.6/drivers/s390/char/monwriter.c @@ -8,6 +8,9 @@ * Author(s): Melissa Howland */ +#define KMSG_COMPONENT "monwriter" +#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt + #include #include #include @@ -64,9 +67,9 @@ static int monwrite_diag(struct monwrite rc = appldata_asm(&id, fcn, (void *) buffer, myhdr->datalen); if (rc <= 0) return rc; + pr_err("Writing monitor data failed with rc=%i\n", rc); if (rc == 5) return -EPERM; - printk("DIAG X'DC' error with return code: %i\n", rc); return -EINVAL; } -- blue skies, Martin. "Reality continues to ruin my life." - Calvin. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/