Created attachment 663847[details][diff][review]
Use %lld when nsPrintfCString'ing the parent ID
"TenFourFox: I Like Big Endian and I Cannot Lie"
Upstreamed from http://code.google.com/p/tenfourfox/issues/detail?id=177
After bug 702639, bookmarks search stopped working on big endian, including TenFourFox and derivatives on PowerPC. NSPR logging showed that the parent IDs were all appearing as zero in the generated SQL. This is probably an endian issue since the same code worked when they were 32-bit. Simply changing the %d to %lld in the attached patch should suffice for this instance, although there are probably others.