From: Lekensteyn <lekensteyn at gmail.com>
To: powertop@lists.01.org
Subject: Re: [Powertop] [PATCH] catch fstream exceptions in lib routines
Date: Fri, 18 May 2012 12:58:10 +0200 [thread overview]
Message-ID: <1403259.dDrcVdOxix@penguin> (raw)
In-Reply-To: 20120518101739.GB3074@swordfish
[-- Attachment #1: Type: text/plain, Size: 504 bytes --]
On Friday 18 May 2012 13:17:39 Sergey Senozhatsky wrote:
Hi,
> @@ -187,10 +192,17 @@ int read_sysfs(const string &filename, bool *ok)
> *ok = false;
> return 0;
> }
> - file >> i;
> + try
> + {
> + file >> i;
> + if (ok)
> + *ok = true;
> + } catch (std::exception &exc) {
> + if (ok)
> + *ok = "false";
I have changed this to false (without quotes), I guess that is what you meant.
With that change,
Tested-by: Lekensteyn <lekensteyn(a)gmail.com>
Thanks,
Peter
next reply other threads:[~2012-05-18 10:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-18 10:58 Lekensteyn [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-05-18 10:17 [Powertop] [PATCH] catch fstream exceptions in lib routines Sergey Senozhatsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1403259.dDrcVdOxix@penguin \
--to=powertop@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.