From b3ea807d9e389ccadd77541be0fd61adf689505b Mon Sep 17 00:00:00 2001 From: "mrbkap%gmail.com" Date: Wed, 8 Aug 2007 01:47:40 +0000 Subject: [PATCH] Fix broken printf to fix a compile warning. bug 390855, r+sr+a=bsmedberg --- xpcom/tests/TestObserverService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpcom/tests/TestObserverService.cpp b/xpcom/tests/TestObserverService.cpp index 7b9f5a770da..32f07fbad7d 100644 --- a/xpcom/tests/TestObserverService.cpp +++ b/xpcom/tests/TestObserverService.cpp @@ -59,7 +59,7 @@ static void testResult( nsresult rv ) { } void printString(nsString &str) { - printf("%s", str.get()); + printf("%s", NS_ConvertUTF16toUTF8(str).get()); } class TestObserver : public nsIObserver, public nsSupportsWeakReference {