Skip to content

Commit

Permalink
Bug 586048. Fix typo in crash annotation code. r=bsmedberg,a=bustage
Browse files Browse the repository at this point in the history
This also cleans up the annotation note that we add.
  • Loading branch information
jrmuizel committed Aug 30, 2010
1 parent e512758 commit 846ffca
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions widget/src/windows/GfxInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@ void GfxInfo::AddCrashReportAnnotations()
GetAdapterDeviceID(&deviceID);
GetAdapterVendorID(&vendorID);

deviceIDString.AppendPrintf("%04x", &deviceID);
vendorIDString.AppendPrintf("%04x", &vendorID);
deviceIDString.AppendPrintf("%04x", deviceID);
vendorIDString.AppendPrintf("%04x", vendorID);

CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("AdapterVendorID"),
vendorIDString);
Expand All @@ -325,10 +325,12 @@ void GfxInfo::AddCrashReportAnnotations()

/* Add an App Note for now so that we get the data immediately. These
* can go away after we store the above in the socorro db */
CrashReporter::AppendAppNotesToCrashReport(nsCAutoString(NS_LITERAL_CSTRING("AdapterVendorID: ")) +
vendorIDString);
CrashReporter::AppendAppNotesToCrashReport(nsCAutoString(NS_LITERAL_CSTRING("AdapterDeviceID: ")) +
deviceIDString);
nsCAutoString note;
/* AppendPrintf only supports 32 character strings, mrghh. */
note.AppendPrintf("AdapterVendorID: %04x, ", vendorID);
note.AppendPrintf("AdapterDeviceID: %04x\n", deviceID);

CrashReporter::AppendAppNotesToCrashReport(note);

#endif
}

0 comments on commit 846ffca

Please sign in to comment.