~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_query/logging_query.cc

  • Committer: Brian Aker
  • Date: 2008-10-03 17:07:27 UTC
  • mto: This revision was merged to the branch mainline in revision 437.
  • Revision ID: brian@tangent.org-20081003170727-78s8xb08yo5dhbnj
Fedora fix for printf

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
             " db=\"%.*s\" query=\"%.*s\"\n",
52
52
             (unsigned long) thd->thread_id,
53
53
             (unsigned long) thd->query_id,
54
 
             command_name[thd->command].length, command_name[thd->command].str,
 
54
             (uint32_t)command_name[thd->command].length, command_name[thd->command].str,
55
55
             thd->db_length, thd->db,
56
56
             thd->query_length, thd->query);
57
57
  wrv= write(fd, msgbuf, msgbuf_len);
72
72
  msgbuf_len=
73
73
    snprintf(msgbuf, MAX_MSG_LEN,
74
74
             "log end thread_id=%ld query_id=%ld command=%.*s"
75
 
             " utime=%lld rows.sent=%ld rows.exam=%ld\n",
 
75
             " utime=%u rows.sent=%ld rows.exam=%u\n",
76
76
             (unsigned long) thd->thread_id, 
77
77
             (unsigned long) thd->query_id,
78
 
             command_name[thd->command].length, command_name[thd->command].str,
79
 
             (thd->current_utime() - thd->start_utime),
 
78
             (uint32_t)command_name[thd->command].length, command_name[thd->command].str,
 
79
             (uint32_t)(thd->current_utime() - thd->start_utime),
80
80
             (unsigned long) thd->sent_row_count,
81
 
             (unsigned long) thd->examined_row_count);
 
81
             (uint32_t) thd->examined_row_count);
82
82
  wrv= write(fd, msgbuf, msgbuf_len);
83
83
  assert(wrv == msgbuf_len);
84
84