View Change
2 comments:
File ich_descriptors.c:
Patch Set #1, Line 1248: msg_cerr
msg_perr
Done
Patch Set #1, Line 1248: "__FUNC__, __LINE__ Failed with value %d.\n", ret
I don't think we're supposed to print anything in here, but let the callers handle errors instead. […]
The problem is that when read_ich_descriptors_from_dump() returns non-successful status, layout_from_ich_descriptors() just return 1.
In a failure scenario, what the user gets:
Reading ich descriptor... done.
Couldn't parse the descriptor!
With adding of this print, the user gets:
Reading ich descriptor... done.
layout_from_ich_descriptors():1249, returned with value -4.
Couldn't parse the descriptor!
To view, visit change 44621. To unsubscribe, or for help writing mail filters, visit settings.
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I363aaccfb90e0a127c0f0bb0072e9e85c210b669
Gerrit-Change-Number: 44621
Gerrit-PatchSet: 1
Gerrit-Owner: Jonathan Zhang <jonzhang@fb.com>
Gerrit-Reviewer: Angel Pons <th3fanbus@gmail.com>
Gerrit-Reviewer: Bryant Ou <bryant.ou.q@gmail.com>
Gerrit-Reviewer: David Hendricks <dhendrix.sync@gmail.com>
Gerrit-Reviewer: Johnny Lin <Johnny_Lin@wiwynn.com>
Gerrit-Reviewer: Maxim Polyakov <max.senia.poliak@gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h@gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-Comment-Date: Thu, 20 Aug 2020 19:05:29 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Angel Pons <th3fanbus@gmail.com>
Gerrit-MessageType: comment