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

Issue 187793003: Define print format macros for NSInteger & NSUInteger (Closed)

Created:
6 years, 9 months ago by sdefresne
Modified:
6 years, 9 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Define print format macros for NSInteger & NSUInteger The size of NSInteger and NSUInteger varies between 32-bit and 64-bit architectures, however does not provides macro to safely format them and instead recommend casting the value to the larger version that is used on 64-bit architecture. Using a cast could cause some formatting to be missed (if the type of a variable changes), so instead we define our own macros to format those types safely. BUG=349458 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255755

Patch Set 1 #

Patch Set 2 : Re-upload #

Total comments: 6

Patch Set 3 : Improve unit tests & fix grammatical error #

Total comments: 8

Patch Set 4 : Fix comments from reviewer #

Patch Set 5 : Rebase #

Patch Set 6 : Rebase #

Patch Set 7 : Rebase and try CQ again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -0 lines) Patch
M base/format_macros.h View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
M base/mac/foundation_util_unittest.mm View 1 2 3 2 chunks +67 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
sdefresne
Please take a look.
6 years, 9 months ago (2014-03-05 18:24:31 UTC) #1
Mark Mentovai
error: old chunk mismatch Please try your upload again. Rietveld is kind of a mess.
6 years, 9 months ago (2014-03-05 18:42:39 UTC) #2
sdefresne
On 2014/03/05 18:42:39, Mark Mentovai wrote: > error: old chunk mismatch > > Please try ...
6 years, 9 months ago (2014-03-06 08:47:55 UTC) #3
Mark Mentovai
https://codereview.chromium.org/187793003/diff/20001/base/format_macros.h File base/format_macros.h (right): https://codereview.chromium.org/187793003/diff/20001/base/format_macros.h#newcode51 base/format_macros.h:51: // recommends casting. This has many drawback, so instead ...
6 years, 9 months ago (2014-03-06 14:44:56 UTC) #4
sdefresne
PTAL https://codereview.chromium.org/187793003/diff/20001/base/format_macros.h File base/format_macros.h (right): https://codereview.chromium.org/187793003/diff/20001/base/format_macros.h#newcode51 base/format_macros.h:51: // recommends casting. This has many drawback, so ...
6 years, 9 months ago (2014-03-06 16:27:04 UTC) #5
Mark Mentovai
LGTM with these changes. https://codereview.chromium.org/187793003/diff/40001/base/format_macros.h File base/format_macros.h (right): https://codereview.chromium.org/187793003/diff/40001/base/format_macros.h#newcode51 base/format_macros.h:51: // recommends casting. This has ...
6 years, 9 months ago (2014-03-06 17:02:42 UTC) #6
sdefresne
Thank you for the review. https://codereview.chromium.org/187793003/diff/40001/base/format_macros.h File base/format_macros.h (right): https://codereview.chromium.org/187793003/diff/40001/base/format_macros.h#newcode51 base/format_macros.h:51: // recommends casting. This ...
6 years, 9 months ago (2014-03-06 18:10:53 UTC) #7
sdefresne
The CQ bit was checked by sdefresne@chromium.org
6 years, 9 months ago (2014-03-06 18:10:57 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sdefresne@chromium.org/187793003/60001
6 years, 9 months ago (2014-03-06 18:13:31 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 18:19:46 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 9 months ago (2014-03-06 18:19:47 UTC) #11
sdefresne
The CQ bit was checked by sdefresne@chromium.org
6 years, 9 months ago (2014-03-06 18:27:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sdefresne@chromium.org/187793003/80001
6 years, 9 months ago (2014-03-06 18:27:52 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 18:33:57 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg, mac_chromium_rel
6 years, 9 months ago (2014-03-06 18:33:58 UTC) #15
sdefresne
On 2014/03/06 18:33:58, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 9 months ago (2014-03-06 18:41:57 UTC) #16
Mark Mentovai
We should ask chrome-infrastructure-team.
6 years, 9 months ago (2014-03-06 18:49:26 UTC) #17
sdefresne
The CQ bit was checked by sdefresne@chromium.org
6 years, 9 months ago (2014-03-07 09:15:45 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sdefresne@chromium.org/187793003/100001
6 years, 9 months ago (2014-03-07 09:16:36 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 09:21:01 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg, mac_chromium_rel
6 years, 9 months ago (2014-03-07 09:21:01 UTC) #21
sdefresne
The CQ bit was checked by sdefresne@chromium.org
6 years, 9 months ago (2014-03-07 16:05:51 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sdefresne@chromium.org/187793003/120001
6 years, 9 months ago (2014-03-07 16:06:10 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 18:11:23 UTC) #24
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) telemetry_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=235815
6 years, 9 months ago (2014-03-07 18:11:23 UTC) #25
sdefresne
The CQ bit was checked by sdefresne@chromium.org
6 years, 9 months ago (2014-03-07 18:11:52 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sdefresne@chromium.org/187793003/120001
6 years, 9 months ago (2014-03-07 18:12:18 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sdefresne@chromium.org/187793003/120001
6 years, 9 months ago (2014-03-07 20:21:51 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sdefresne@chromium.org/187793003/120001
6 years, 9 months ago (2014-03-08 10:49:25 UTC) #29
commit-bot: I haz the power
Change committed as 255755
6 years, 9 months ago (2014-03-08 11:43:17 UTC) #30
Rick Byers
6 years, 9 months ago (2014-03-08 17:57:29 UTC) #31
Message was sent while issue was closed.
On 2014/03/08 11:43:17, I haz the power (commit-bot) wrote:
> Change committed as 255755

This change appears to have caused failures on the Mac ASAN bots:
http://build.chromium.org/p/chromium.memory/builders/Mac%20ASan%2064%20Tests%...

Reverted in r255781

Powered by Google App Engine
This is Rietveld 408576698