/*
  Copyright (c) 2014 DataStax

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
*/

#include "logger.hpp"

namespace cass {

void default_log_callback(cass_uint64_t time_ms, CassLogLevel severity,
                          CassString message, void* data) {
  fprintf(stderr, "%u.%03u [%s]: %.*s\n",
          (unsigned int)(time_ms/1000), (unsigned int)(time_ms % 1000),
          cass_log_level_string(severity),
          static_cast<int>(message.length), message.data);
}
}

/*
  Copyright (c) 2014 DataStax

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
*/

#include "logger.hpp"

namespace cass {

void default_log_callback(cass_uint64_t time_ms, CassLogLevel severity,
                          CassString message, void* data) {
  // TODO(mpenick): Format time
  fprintf(stderr, "%llu [%s]: %.*s\n", time_ms, cass_log_level_string(severity),
          static_cast<int>(message.length), message.data);
}
}

--- 
+++ 
@@ -20,8 +20,9 @@
 
 void default_log_callback(cass_uint64_t time_ms, CassLogLevel severity,
                           CassString message, void* data) {
-  // TODO(mpenick): Format time
-  fprintf(stderr, "%llu [%s]: %.*s\n", time_ms, cass_log_level_string(severity),
+  fprintf(stderr, "%u.%03u [%s]: %.*s\n",
+          (unsigned int)(time_ms/1000), (unsigned int)(time_ms % 1000),
+          cass_log_level_string(severity),
           static_cast<int>(message.length), message.data);
 }
 }
Fix to work with different definitions of cass_uint64_t
