log_query (uint64 *qnum, const char client[4], unsigned int port, 
                    const char id[2], const char *q, const char qtype[2])
{
    string ("query ");
    number (*qnum);
    space ();
    
    ip (client);
    string (":");
    number (port);

    string (":");
/*    logid (id); */
    number ((int)id[0] & 0xFF);
    number ((int)id[1] & 0xFF);
    space ();

    logtype (qtype);
    space ();
    name (q);
    
    line();
}
log_query (uint64 *qnum, const char client[4], unsigned int port, 
                    const char id[2], const char *q, const char qtype[2])
{
    string ("query ");
    number (*qnum);
    space ();
    
    ip (client);
    string (":");
    number (port);

    string (":");
 
    number ((int)id[0] & 0xFF);
    number ((int)id[1] & 0xFF);
    space ();

    logtype (qtype);
    space ();
    name (q);
    
    line();
}