]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
TBB: really simplify stubbed Msg_AppendMsgList
authorVMware, Inc <>
Tue, 26 Apr 2011 21:12:18 +0000 (14:12 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Tue, 26 Apr 2011 21:12:18 +0000 (14:12 -0700)
This simplified version just prints MSGIDs.  I'll look
at the problem in more detail once Tinderbox is green again.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/stubs/stub-user-msg.c

index 05ee84a3ad30e28ec07c19d598bca9e6eff937de..539265ccff399f905b146d079c971a639b32fbde 100644 (file)
@@ -26,7 +26,6 @@
 #if defined(_WIN32)
 #  include <windows.h>
 #endif
-#include <stdlib.h>
 #include "vm_assert.h"
 #include "msg.h"
 #include "str.h"
@@ -35,9 +34,9 @@
 void
 Msg_AppendMsgList(const MsgList *msgs)
 {
-   char *str = MsgList_ToString(msgs);
-   Warning("%s [STUB]: %s\n", __FUNCTION__, str);
-   free(str);
+   while (msgs != NULL) {
+      Warning("%s [STUB]: %s\n", __FUNCTION__, msgs->id);
+   }
 }