WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
33568
[BREWMP] Port vprintf_stderr_common
https://bugs.webkit.org/show_bug.cgi?id=33568
Summary
[BREWMP] Port vprintf_stderr_common
Kwang Yul Seo
Reported
2010-01-12 18:27:04 PST
Use BREW's DBGPRINTF to output debug messages.
Attachments
Port vprintf_stderr_common to BREW
(2.05 KB, patch)
2010-01-12 18:34 PST
,
Kwang Yul Seo
no flags
Details
Formatted Diff
Diff
Port vprintf_stderr_common
(2.05 KB, patch)
2010-01-22 18:32 PST
,
Kwang Yul Seo
eric
: review-
Details
Formatted Diff
Diff
Port vprintf_stderr_common
(1.99 KB, patch)
2010-01-26 18:05 PST
,
Kwang Yul Seo
no flags
Details
Formatted Diff
Diff
Port vprintf_stderr_common
(1.99 KB, patch)
2010-01-26 18:10 PST
,
Kwang Yul Seo
no flags
Details
Formatted Diff
Diff
Port vprintf_stderr_common
(1.98 KB, patch)
2010-01-26 18:19 PST
,
Kwang Yul Seo
eric
: review-
Details
Formatted Diff
Diff
Patch
(2.61 KB, patch)
2010-07-02 13:32 PDT
,
Kwang Yul Seo
no flags
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Kwang Yul Seo
Comment 1
2010-01-12 18:34:24 PST
Created
attachment 46419
[details]
Port vprintf_stderr_common to BREW
WebKit Review Bot
Comment 2
2010-01-12 18:38:03 PST
Attachment 46419
[details]
did not pass style-queue: Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1 JavaScriptCore/wtf/Assertions.cpp:113: Use 0 instead of NULL. [readability/null] [4] JavaScriptCore/wtf/Assertions.cpp:115: Use 0 instead of NULL. [readability/null] [5] Total errors found: 2
Kwang Yul Seo
Comment 3
2010-01-22 18:32:51 PST
Created
attachment 47256
[details]
Port vprintf_stderr_common Use PLATFORM(BREWMP).
Eric Seidel (no email)
Comment 4
2010-01-26 14:44:03 PST
Comment on
attachment 47256
[details]
Port vprintf_stderr_common OK, but lets fix Assertions.h for the COMPILE_ASSERT problem. If you're mallocing locally, you should use an OwnPtr. Or maybe a Vector<char> here.
Kwang Yul Seo
Comment 5
2010-01-26 18:05:33 PST
Created
attachment 47479
[details]
Port vprintf_stderr_common Remove #undef COMPILE_ASSERT and use Vector<char>.
WebKit Review Bot
Comment 6
2010-01-26 18:09:11 PST
Attachment 47479
[details]
did not pass style-queue: Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1 JavaScriptCore/wtf/Assertions.cpp:112: Use 0 instead of NULL. [readability/null] [4] JavaScriptCore/wtf/Assertions.cpp:114: Use 0 instead of NULL. [readability/null] [5] Total errors found: 2 If any of these errors are false positives, please file a bug against check-webkit-style.
Kwang Yul Seo
Comment 7
2010-01-26 18:10:49 PST
Created
attachment 47480
[details]
Port vprintf_stderr_common Fix style errors.
WebKit Review Bot
Comment 8
2010-01-26 18:15:09 PST
Attachment 47480
[details]
did not pass style-queue: Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1 JavaScriptCore/wtf/Assertions.cpp:112: Use 0 instead of NULL. [readability/null] [4] Total errors found: 1 If any of these errors are false positives, please file a bug against check-webkit-style.
Kwang Yul Seo
Comment 9
2010-01-26 18:18:03 PST
It seems that check-webkit-style complains about NULL in the comment.
Kwang Yul Seo
Comment 10
2010-01-26 18:19:17 PST
Created
attachment 47481
[details]
Port vprintf_stderr_common Replace NULL with 0 in the comment.
Eric Seidel (no email)
Comment 11
2010-02-04 16:54:04 PST
Comment on
attachment 47481
[details]
Port vprintf_stderr_common I probably would have made the while loop its own function which took a Vector<char>& and knew how to walk the vector spitting out chunks to the debug stream. This should probably just be "static": 123 char printBuffer[printBufferSize + 1]; Can VSNPRINTF ever return < 0? If so, then this code can deadlock. I guess I would have used buffer.size() to bound my while loop instead of the return value from VSNPRINTF. That way you know for sure that you never walk off the end of the Vector.
Kwang Yul Seo
Comment 12
2010-07-02 13:32:00 PDT
Created
attachment 60397
[details]
Patch Follow Eric's advice.
Kwang Yul Seo
Comment 13
2010-08-27 08:49:01 PDT
Ping.
Kent Tamura
Comment 14
2010-08-29 18:21:50 PDT
Comment on
attachment 60397
[details]
Patch Looks ok.
WebKit Commit Bot
Comment 15
2010-08-29 18:47:19 PDT
Comment on
attachment 60397
[details]
Patch Clearing flags on attachment: 60397 Committed
r66345
: <
http://trac.webkit.org/changeset/66345
>
WebKit Commit Bot
Comment 16
2010-08-29 18:47:25 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug