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

Issue 432083003: fix warning in third_party/leveldatabase/chromium_logger.h (Closed)

Created:
6 years, 4 months ago by Mostyn Bramley-Moore
Modified:
6 years, 4 months ago
Reviewers:
jsbell, cmumford
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

fix warning in third_party/leveldatabase/chromium_logger.h Cast thread_id to uint64 to make sure the PRIu64 printf format works. Otherwise gcc 4.8 gives an error like so: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 11 has type ‘long long unsigned int’ [-Wformat=] Followup to https://codereview.chromium.org/416633002 BUG=381456 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287094

Patch Set 1 #

Total comments: 2

Patch Set 2 : cast to uint64 instead #

Patch Set 3 : add chromium_logger.h to leveldatabase.gyp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M third_party/leveldatabase/chromium_logger.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/leveldatabase/leveldatabase.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Mostyn Bramley-Moore
@cmumford, jsbell: does this look OK?
6 years, 4 months ago (2014-07-31 20:41:39 UTC) #1
jsbell
Weird - the format_macros are intended for this very purpose! What does gcc4.8 think of ...
6 years, 4 months ago (2014-07-31 20:55:52 UTC) #2
cmumford
lgtm https://codereview.chromium.org/432083003/diff/1/third_party/leveldatabase/chromium_logger.h File third_party/leveldatabase/chromium_logger.h (left): https://codereview.chromium.org/432083003/diff/1/third_party/leveldatabase/chromium_logger.h#oldcode49 third_party/leveldatabase/chromium_logger.h:49: "%04d/%02d/%02d-%02d:%02d:%02d.%03d %" PRIu64 " ", On some platforms ...
6 years, 4 months ago (2014-07-31 20:56:13 UTC) #3
Mostyn Bramley-Moore
On 2014/07/31 20:55:52, jsbell wrote: > Weird - the format_macros are intended for this very ...
6 years, 4 months ago (2014-07-31 21:09:32 UTC) #4
jsbell
On 2014/07/31 21:09:32, Mostyn Bramley-Moore wrote: > On 2014/07/31 20:55:52, jsbell wrote: > > Weird ...
6 years, 4 months ago (2014-07-31 21:16:13 UTC) #5
Mostyn Bramley-Moore
Done: switched to cast to uint64. https://codereview.chromium.org/432083003/diff/1/third_party/leveldatabase/chromium_logger.h File third_party/leveldatabase/chromium_logger.h (left): https://codereview.chromium.org/432083003/diff/1/third_party/leveldatabase/chromium_logger.h#oldcode49 third_party/leveldatabase/chromium_logger.h:49: "%04d/%02d/%02d-%02d:%02d:%02d.%03d %" PRIu64 ...
6 years, 4 months ago (2014-07-31 21:22:18 UTC) #6
jsbell
On 2014/07/31 21:22:18, Mostyn Bramley-Moore wrote: > The mac_chromium_compile_rel trybot thought it didn't need to ...
6 years, 4 months ago (2014-07-31 21:35:51 UTC) #7
Mostyn Bramley-Moore
> > The mac_chromium_compile_rel trybot thought it didn't need to recompile with > > this ...
6 years, 4 months ago (2014-07-31 21:42:52 UTC) #8
jsbell
On 2014/07/31 21:42:52, Mostyn Bramley-Moore wrote: > Done. Thanks! > While doing that I noticed ...
6 years, 4 months ago (2014-07-31 23:06:05 UTC) #9
jsbell
lgtm
6 years, 4 months ago (2014-07-31 23:06:21 UTC) #10
Mostyn Bramley-Moore
> skia/gyp/gpu.gyp or some other files might have better patterns to follow. How > about ...
6 years, 4 months ago (2014-07-31 23:22:37 UTC) #11
Mostyn Bramley-Moore
The CQ bit was checked by mostynb@opera.com
6 years, 4 months ago (2014-07-31 23:22:41 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mostynb@opera.com/432083003/40001
6 years, 4 months ago (2014-07-31 23:24:53 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-01 07:49:06 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-01 14:54:32 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel/builds/2377)
6 years, 4 months ago (2014-08-01 14:54:32 UTC) #16
Mostyn Bramley-Moore
The CQ bit was checked by mostynb@opera.com
6 years, 4 months ago (2014-08-01 14:55:47 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mostynb@opera.com/432083003/40001
6 years, 4 months ago (2014-08-01 14:59:02 UTC) #18
commit-bot: I haz the power
6 years, 4 months ago (2014-08-01 21:51:16 UTC) #19
Message was sent while issue was closed.
Change committed as 287094

Powered by Google App Engine
This is Rietveld 408576698