From 6738cb76526e96207870ee459601c4d2ad5cde98 Mon Sep 17 00:00:00 2001 From: chrfranke <chrfranke@4ea69e1a-61f1-4043-bf83-b5c94c648137> Date: Sat, 16 Jan 2010 13:04:55 +0000 Subject: [PATCH] smartctl: Fix option '-q, --quietmode' (ticket #11). git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@3032 4ea69e1a-61f1-4043-bf83-b5c94c648137 --- smartmontools/CHANGELOG | 3 +++ smartmontools/NEWS | 1 + smartmontools/smartctl.cpp | 6 +++--- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/smartmontools/CHANGELOG b/smartmontools/CHANGELOG index 8b50cdfef..35bdb9393 100644 --- a/smartmontools/CHANGELOG +++ b/smartmontools/CHANGELOG @@ -43,6 +43,9 @@ NOTES FOR FUTURE RELEASES: see TODO file. <DEVELOPERS: ADDITIONS TO THE CHANGE LOG GO JUST BELOW HERE, PLEASE> + [CF] smartctl: Fix option '-q, --quietmode' (ticket #11). + Regression was introduced with r2807. + [CF] drivedb.h update: - SAMSUNG SpinPoint F2 EG series diff --git a/smartmontools/NEWS b/smartmontools/NEWS index 9b04f65dc..ea4601fa3 100644 --- a/smartmontools/NEWS +++ b/smartmontools/NEWS @@ -12,6 +12,7 @@ Summary: smartmontools release 5.40 - configure: New default value for '--with-docdir'. - Drive database is in a separate source file 'drivedb.h' which can be downloaded from SVN. +- Fix regression in smartctl option '-q, --quietmode'. Date 2009-12-09 Summary: smartmontools release 5.39 (UNSTABLE/EXPERIMENTAL) diff --git a/smartmontools/smartctl.cpp b/smartmontools/smartctl.cpp index 93ba92894..ec701c2ed 100644 --- a/smartmontools/smartctl.cpp +++ b/smartmontools/smartctl.cpp @@ -3,8 +3,8 @@ * * Home page of code is: http://smartmontools.sourceforge.net * - * Copyright (C) 2002-9 Bruce Allen <smartmontools-support@lists.sourceforge.net> - * Copyright (C) 2008-9 Christian Franke <smartmontools-support@lists.sourceforge.net> + * Copyright (C) 2002-10 Bruce Allen <smartmontools-support@lists.sourceforge.net> + * Copyright (C) 2008-10 Christian Franke <smartmontools-support@lists.sourceforge.net> * Copyright (C) 2000 Michael Cornwell <cornwell@acm.org> * * This program is free software; you can redistribute it and/or modify @@ -730,7 +730,7 @@ const char * parse_options(int argc, char** argv, // print output is switchable, then start with the print output // turned off if (con->printing_switchable) - con->dont_print = false; + con->dont_print = true; // error message if user has asked for more than one test if (testcnt > 1) { -- GitLab