}
 
        if (op != OP_GET) {
-               printf("<P>Looking for path from 0x%" PRIx64" to 0x%" PRIx64
-                               ".\n",
+               printf("<P>Looking for path from 0x%016" PRIX64" to 0x%016"
+                               PRIX64 ".\n",
                                from, to);
-               printf("<A HREF=\"gpgwww?from=0x%08" PRIx64 "&to=0x%08" PRIx64
+               printf("<A HREF=\"gpgwww?from=0x%016" PRIX64 "&to=0x%016" PRIX64
                                "\">Find reverse path</A>\n",
                                to,
                                from);
-               printf("<A HREF=\"gpgwww?from=0x%08" PRIx64 "&to=0x%08" PRIx64
+               printf("<A HREF=\"gpgwww?from=0x%08" PRIX64 "&to=0x%08" PRIX64
                                "&op=get\">"
                                "Get all keys listed</A></P>\n",
                                from,
        catchsignals();
        config.dbbackend->initdb(true);
        inithash();
-       logthing(LOGTHING_NOTICE, "Looking for path from 0x%" PRIx64 " to 0x%"
-                       PRIx64,
+       logthing(LOGTHING_NOTICE, "Looking for path from 0x%016" PRIX64
+                       " to 0x%016"
+                       PRIX64,
                        from,
                        to);
        if (op == OP_GET) {