Closed
Bug 901187
Opened 12 years ago
Closed 12 years ago
Send printf_stderr output to OutputDebugString
Categories
(Core :: General, defect)
Tracking
()
RESOLVED
FIXED
mozilla26
People
(Reporter: kats, Assigned: kats)
References
Details
Attachments
(1 file, 1 obsolete file)
|
909 bytes,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #762519 +++
Similar to the bug I'm cloning, I would like printf_stderr to go to the Visual Studio console output to make debugging on Metro easier.
| Assignee | ||
Comment 1•12 years ago
|
||
Comment on attachment 785331 [details] [diff] [review]
Patch
Not sure who should review this, feel free to bounce it as needed.
Attachment #785331 -
Attachment is patch: true
Attachment #785331 -
Flags: review?(jmathies)
| Assignee | ||
Comment 2•12 years ago
|
||
Sorry, haven't gotten the right patch generation flags on this windows machine.
Assignee: nobody → bugmail.mozilla
Attachment #785331 -
Attachment is obsolete: true
Attachment #785331 -
Flags: review?(jmathies)
Attachment #785333 -
Flags: review?(jmathies)
Comment 3•12 years ago
|
||
Comment on attachment 785333 [details] [diff] [review]
Patch
Looks ok but I can't r+ something in xpcom glue.
Attachment #785333 -
Flags: review?(jmathies) → review?(benjamin)
Comment 4•12 years ago
|
||
Comment on attachment 785333 [details] [diff] [review]
Patch
Is there a particular reason why you early-return here, instead of printing to both stderr and OutputDebugStringA ?
| Assignee | ||
Comment 5•12 years ago
|
||
Not particularly, no. I can let it fall through. I can also refactor the code to reduce duplication but that might result in the stderr version getting truncated at 2047 bytes as well, so maybe we don't want that.
Comment 6•12 years ago
|
||
Yeah, I'm not particularly worried about the truncation, but I'd like it to always print to stderr, because I personally at least often pipe output to a file even while I'm in a debugger session.
Comment 7•12 years ago
|
||
Comment on attachment 785333 [details] [diff] [review]
Patch
r=me with the return removed
Attachment #785333 -
Flags: review?(benjamin) → review+
| Assignee | ||
Comment 8•12 years ago
|
||
Landed with the return statement removed:
https://hg.mozilla.org/integration/mozilla-inbound/rev/e4a05768e8c3
Comment 9•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
Updated•11 years ago
|
OS: Windows 8 Metro → Windows 8.1
You need to log in
before you can comment on or make changes to this bug.
Description
•