From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
To: Li Liu <john.liuli@huawei.com>
Cc: qemu-trivial <qemu-trivial@nongnu.org>,
Michael Tokarev <mjt@tls.msk.ru>,
"qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>,
Markus Armbruster <armbru@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v2 1/2] device_tree.c: redirect load_device_tree err message to stderr
Date: Thu, 28 Aug 2014 23:15:25 +1000 [thread overview]
Message-ID: <CAEgOgz5CihZHeVPdGZEfz4bTaB7Eyhs2wnoKdUFO11bvxGTjKg@mail.gmail.com> (raw)
In-Reply-To: <53FF145E.4040004@huawei.com>
Hi Li,
On Thu, Aug 28, 2014 at 9:37 PM, Li Liu <john.liuli@huawei.com> wrote:
> Could this patchset apply to -trivial, thank you!
>
Pings should generally only be sent after a week or so. My personal
rule is 7 calendar days from the original send before pinging.
Maintainers will often silently take short periods of time off-list
either for work or vacation.
Regards,
Peter
> Best regards,
> Li.
>
> On 2014/8/26 14:38, john.liuli wrote:
>> From: Li Liu <john.liuli@huawei.com>
>>
>> Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
>> Signed-off-by: Li Liu <john.liuli@huawei.com>
>> ---
>> changes v1 -> v2:
>> 1) fix indent issue as peter suggested.
>> 2) dump all err mesages with error_report.
>>
>> ---
>> device_tree.c | 15 ++++++++-------
>> 1 file changed, 8 insertions(+), 7 deletions(-)
>>
>> diff --git a/device_tree.c b/device_tree.c
>> index ca83504..9d47195 100644
>> --- a/device_tree.c
>> +++ b/device_tree.c
>> @@ -20,6 +20,7 @@
>>
>> #include "config.h"
>> #include "qemu-common.h"
>> +#include "qemu/error-report.h"
>> #include "sysemu/device_tree.h"
>> #include "sysemu/sysemu.h"
>> #include "hw/loader.h"
>> @@ -79,8 +80,8 @@ void *load_device_tree(const char *filename_path, int *sizep)
>> *sizep = 0;
>> dt_size = get_image_size(filename_path);
>> if (dt_size < 0) {
>> - printf("Unable to get size of device tree file '%s'\n",
>> - filename_path);
>> + error_report("Unable to get size of device tree file '%s'",
>> + filename_path);
>> goto fail;
>> }
>>
>> @@ -92,21 +93,21 @@ void *load_device_tree(const char *filename_path, int *sizep)
>>
>> dt_file_load_size = load_image(filename_path, fdt);
>> if (dt_file_load_size < 0) {
>> - printf("Unable to open device tree file '%s'\n",
>> - filename_path);
>> + error_report("Unable to open device tree file '%s'",
>> + filename_path);
>> goto fail;
>> }
>>
>> ret = fdt_open_into(fdt, fdt, dt_size);
>> if (ret) {
>> - printf("Unable to copy device tree in memory\n");
>> + error_report("Unable to copy device tree in memory");
>> goto fail;
>> }
>>
>> /* Check sanity of device tree */
>> if (fdt_check_header(fdt)) {
>> - printf ("Device tree file loaded into memory is invalid: %s\n",
>> - filename_path);
>> + error_report("Device tree file loaded into memory is invalid: %s",
>> + filename_path);
>> goto fail;
>> }
>> *sizep = dt_size;
>>
>
>
next prev parent reply other threads:[~2014-08-28 13:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-26 6:38 [Qemu-devel] [PATCH v2 1/2] device_tree.c: redirect load_device_tree err message to stderr john.liuli
2014-08-26 6:38 ` [Qemu-devel] [PATCH v2 2/2] device_tree.c: dump all err mesages with error_report john.liuli
2014-08-28 11:37 ` [Qemu-devel] [PATCH v2 1/2] device_tree.c: redirect load_device_tree err message to stderr Li Liu
2014-08-28 13:15 ` Peter Crosthwaite [this message]
2014-08-29 16:23 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
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=CAEgOgz5CihZHeVPdGZEfz4bTaB7Eyhs2wnoKdUFO11bvxGTjKg@mail.gmail.com \
--to=peter.crosthwaite@xilinx.com \
--cc=armbru@redhat.com \
--cc=john.liuli@huawei.com \
--cc=mjt@tls.msk.ru \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).