From patchwork Wed Feb 10 17:41:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Stone X-Patchwork-Id: 61687 Delivered-To: patches@linaro.org Received: by 10.112.43.199 with SMTP id y7csp2782757lbl; Wed, 10 Feb 2016 09:42:04 -0800 (PST) X-Received: by 10.60.131.147 with SMTP id om19mr38321171oeb.82.1455126124343; Wed, 10 Feb 2016 09:42:04 -0800 (PST) Return-Path: Received: from mail-ob0-x233.google.com (mail-ob0-x233.google.com. [2607:f8b0:4003:c01::233]) by mx.google.com with ESMTPS id r10si4008513oed.80.2016.02.10.09.42.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Feb 2016 09:42:04 -0800 (PST) Received-SPF: pass (google.com: domain of al.stone@linaro.org designates 2607:f8b0:4003:c01::233 as permitted sender) client-ip=2607:f8b0:4003:c01::233; Authentication-Results: mx.google.com; spf=pass (google.com: domain of al.stone@linaro.org designates 2607:f8b0:4003:c01::233 as permitted sender) smtp.mailfrom=al.stone@linaro.org; dkim=pass header.i=@linaro.org Received: by mail-ob0-x233.google.com with SMTP id wb13so38375921obb.1 for ; Wed, 10 Feb 2016 09:42:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=IqgaoQAE0y9sxtAaYlTMcHPvMqlxI4cwQvT/KaoQnsg=; b=MqXz2CrDTZkuGYKO7bwTAjWugwgqlq53x3ejaIPsmmNeTzURCg0KJHtP6aFQuQW9pF v9xH2vWUGgNfhMSPUJQtd6f3u5/IGaq+zsVYLpxhgxbw4Kkfs8/wiRrqXiAngB2GngE2 1724UaKZNm8fnVWndOtHSXlTK6KTIYhanpPDs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=IqgaoQAE0y9sxtAaYlTMcHPvMqlxI4cwQvT/KaoQnsg=; b=O7VzdJBoOVc8xcqK+koX+tpXasrqEtG0HSk1jdSGo1L4kU5YFLIloXT/aFLra3Pabk QwWWUay4N6Tekps7PH+fS0Dtw/+2iOgOk9PPKG/QvXSTcSEUxRzG39kGj3xGKTneoFYx e7mKeKoMvCQtG0P6SnGLDnle+hcOtTy8q6lRrzQc4U58OE7tX+QsN97kFVlzyeEeqhnw uPD0KW5fzo9iPK3HoGIXkROmDUUjgVlOrWWbx49nlaOuzwt3gbIv7n1sC6NZB0XpHm4+ VC7Bfcluez+FVR6IOetJm75o0JyrZn3Y3fgHWi0fHIaVGC2DkEkhFpeBPrd4lDfoytVB +Dzw== X-Gm-Message-State: AG10YOR3oDfdNtG5Xx5rw4+XX1wUEg6XSsGoQG0KAIPe2gkr6amVEjkZ3znuhOiABMTHZdjx/8k= X-Received: by 10.60.232.133 with SMTP id to5mr38453931oec.33.1455126124042; Wed, 10 Feb 2016 09:42:04 -0800 (PST) Return-Path: Received: from fidelio.ahs3.com (c-50-134-239-249.hsd1.co.comcast.net. [50.134.239.249]) by smtp.googlemail.com with ESMTPSA id gi5sm2141618obb.6.2016.02.10.09.42.02 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 10 Feb 2016 09:42:03 -0800 (PST) From: Al Stone To: linux-edac@vger.kernel.org Cc: linaro-acpi@lists.linaro.org, patches@linaro.org, Al Stone Subject: [PATCH 1/3] rasdaemon: correct a printf that was missing a field to print to Date: Wed, 10 Feb 2016 10:41:40 -0700 Message-Id: <1455126102-28997-2-git-send-email-al.stone@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1455126102-28997-1-git-send-email-al.stone@linaro.org> References: <1455126102-28997-1-git-send-email-al.stone@linaro.org> Minor correction to a printf to add a field for a string being printed out. Signed-off-by: Al Stone --- mce-intel-p4-p6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.5.0 diff --git a/mce-intel-p4-p6.c b/mce-intel-p4-p6.c index c8e219d..4615e1a 100644 --- a/mce-intel-p4-p6.c +++ b/mce-intel-p4-p6.c @@ -127,7 +127,7 @@ void p4_decode_model(struct mce_event *e) for (i = 0; i < ARRAY_SIZE(p4_model); i++) { if (model & (1 << p4_model[i].value)) - mce_snprintf(e->error_msg, p4_model[i].str); + mce_snprintf(e->error_msg, "%s", p4_model[i].str); } }