Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758357AbZJPJqp (ORCPT ); Fri, 16 Oct 2009 05:46:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758185AbZJPJqo (ORCPT ); Fri, 16 Oct 2009 05:46:44 -0400 Received: from mail-fx0-f218.google.com ([209.85.220.218]:50555 "EHLO mail-fx0-f218.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758136AbZJPJqn (ORCPT ); Fri, 16 Oct 2009 05:46:43 -0400 From: amit.kucheria@canonical.com To: List Linux Kernel Cc: len.brown@intel.com, Amit Kucheria Subject: [PATCH] acpi: thermal: [TRIVIAL] Add EOL to the trip_point_N_type strings Date: Fri, 16 Oct 2009 12:46:02 +0300 Message-Id: <1255686362-30022-1-git-send-email-amit.kucheria@canonical.com> X-Mailer: git-send-email 1.6.3.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1357 Lines: 43 From: Amit Kucheria Make the trip_point_N_type sysfs files return a string ending in EOL for consistency with other sysfs files. Signed-off-by: Amit Kucheria --- drivers/thermal/thermal_sys.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c index 4e83c29..6f8d8f9 100644 --- a/drivers/thermal/thermal_sys.c +++ b/drivers/thermal/thermal_sys.c @@ -180,15 +180,15 @@ trip_point_type_show(struct device *dev, struct device_attribute *attr, switch (type) { case THERMAL_TRIP_CRITICAL: - return sprintf(buf, "critical"); + return sprintf(buf, "critical\n"); case THERMAL_TRIP_HOT: - return sprintf(buf, "hot"); + return sprintf(buf, "hot\n"); case THERMAL_TRIP_PASSIVE: - return sprintf(buf, "passive"); + return sprintf(buf, "passive\n"); case THERMAL_TRIP_ACTIVE: - return sprintf(buf, "active"); + return sprintf(buf, "active\n"); default: - return sprintf(buf, "unknown"); + return sprintf(buf, "unknown\n"); } } -- 1.6.3.3 -- 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/