]> git.saurik.com Git - android/aapt.git/commitdiff
Fix %p vs %s typo in aapt message
authorKenny Root <kenny@the-b.org>
Wed, 2 Sep 2009 00:03:11 +0000 (19:03 -0500)
committerKenny Root <kenny@the-b.org>
Wed, 2 Sep 2009 00:07:48 +0000 (19:07 -0500)
When trying to print an xmltree or xmlstrings from aapt, the error
message if the resource didn't exist erroneously printed a pointer
instead of a string.

Change-Id: I317bbbdc1200e0f10922e80a36e41a22b2d50d0d

Command.cpp

index e04491d93b863c3949a238bb2049faf5cef3ae42..79e6641784a55a3521247aecad1fced40decc83d 100644 (file)
@@ -396,7 +396,7 @@ int doDump(Bundle* bundle)
             ResXMLTree tree;
             asset = assets.openNonAsset(resname, Asset::ACCESS_BUFFER);
             if (asset == NULL) {
-                fprintf(stderr, "ERROR: dump failed because resource %p found\n", resname);
+                fprintf(stderr, "ERROR: dump failed because resource %s found\n", resname);
                 goto bail;
             }
 
@@ -422,7 +422,7 @@ int doDump(Bundle* bundle)
             ResXMLTree tree;
             asset = assets.openNonAsset(resname, Asset::ACCESS_BUFFER);
             if (asset == NULL) {
-                fprintf(stderr, "ERROR: dump failed because resource %p found\n", resname);
+                fprintf(stderr, "ERROR: dump failed because resource %s found\n", resname);
                 goto bail;
             }