Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Issue 2656004: add c++ version of the firmware utilities (Closed)

Created:
10 years, 6 months ago by Hung-Te
Modified:
9 years, 7 months ago
Reviewers:
vb
CC:
chromium-os-reviews_chromium.org, mdhayter
Base URL:
ssh://gitrw.chromium.org/firmware-utils.git
Visibility:
Public.

Description

c++ version of the firmware utilities. This was translated from the original python scripts. For more information (including the test procedure) please refer to: (gpio_setup) http://codereview.chromium.org/2421006 (reboot_mode) http://codereview.chromium.org/2320003

Patch Set 1 #

Total comments: 4

Patch Set 2 : removed python scripts and add comments for range names in gpio #

Unified diffs Side-by-side diffs Delta from patch set Stats (+777 lines, -401 lines) Patch
A Makefile View 1 1 chunk +15 lines, -0 lines 0 comments Download
A gpio_setup.cc View 1 1 chunk +464 lines, -0 lines 0 comments Download
D gpio_setup.py View 1 chunk +0 lines, -230 lines 0 comments Download
A reboot_mode.cc View 1 chunk +298 lines, -0 lines 0 comments Download
D reboot_mode.py View 1 chunk +0 lines, -171 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Hung-Te
10 years, 6 months ago (2010-06-07 20:23:20 UTC) #1
vb
Hung-Te, great job, even lint had nothing to complaint about :) On top of the ...
10 years, 6 months ago (2010-06-07 21:12:54 UTC) #2
Hung-Te
10 years, 6 months ago (2010-06-07 22:02:25 UTC) #3
Hung-Te
I've made changes according to the suggestions, except the TYPE_MIN one (described below). http://codereview.chromium.org/2656004/diff/1/2 File ...
10 years, 6 months ago (2010-06-07 22:03:00 UTC) #4
vb
10 years, 6 months ago (2010-06-07 22:22:27 UTC) #5
LGTM

thank you for addressing my comments.

[resend from the proper source address]

On Mon, Jun 7, 2010 at 3:03 PM,  <hungte@chromium.org> wrote:
> I've made changes according to the suggestions, except the TYPE_MIN one
> (described below).
>
>
> http://codereview.chromium.org/2656004/diff/1/2
> File Makefile (right):
>
> http://codereview.chromium.org/2656004/diff/1/2#newcode15
> Makefile:15: @rm -f $(TARGETS) *.o *~
> On 2010/06/07 21:12:54, vb wrote:
>>
>> since this make file does not cause .* files to be generated there is
>
> no point
>>
>> in including them in the `clean' target.
>
>
> Done.
>
> http://codereview.chromium.org/2656004/diff/1/3
> File gpio_setup.cc (right):
>
> http://codereview.chromium.org/2656004/diff/1/3#newcode88
> gpio_setup.cc:88:
> (sizeof(GPIO_SIGNAL_TYPES)/sizeof(GPIO_SIGNAL_TYPES[0]) - 1)
> On 2010/06/07 21:12:54, vb wrote:
>>
>> - GPIO_SIGNAL_TYPE_MIN) would be clearer than -1)
>
>  I think this must be one. The macro here is the 'max (possible) value'
> instead of 'valid size', so if we change 1 to MIN and someone changed
> MIN to 2, then the max would go wrong.
>
>  The real meaning of N-1 here refers to 'get max valid index value of a
> zero-base array', where sizeof(N)/sizeof(N[0]) gets "valid size (max+1)"
> so max should be "size-1".
>
>  I will add some comments in the code to highlight it's not MIN.
>
> http://codereview.chromium.org/2656004/show
>



--
Vadim Bendebury (mailto:vbendeb@google.com)
Google ChromeOS - (650) 253-7486



-- 
Vadim Bendebury (mailto:vbendeb@google.com)
Google ChromeOS - (650) 253-7486

Powered by Google App Engine
This is Rietveld 408576698