]> pilppa.com Git - libplpdevicebus.git/commitdiff
removed warning
authorMika Laitio <lamikr@pilppa.org>
Mon, 23 Jul 2012 17:42:43 +0000 (20:42 +0300)
committerMika Laitio <lamikr@pilppa.org>
Mon, 23 Jul 2012 17:42:43 +0000 (20:42 +0300)
Signed-off-by: Mika Laitio <lamikr@pilppa.org>
src_server/DeviceManagerServer.cc

index ffa688e6ae436483e192bac67a5cd44ed9b5affa..53b5a4916a0a9ca830c74b55768e0ae59b96714f 100644 (file)
@@ -44,7 +44,10 @@ DeviceManagerServer::DeviceManagerServer(list<Device *> dev_lst_param) {
        //DeviceConfig::set_base_dir_name(storage_dir_param);
        //_dev_lst      = Factory::get_device_list();
        _dev_lst        = dev_lst_param;
-       log_info("device count: %lu\n", _dev_lst.size());
+       /* In some toolchains the size is not unsigned int instead of long
+           unsigned int, and that can cause warnings/errors without typecasting 
+         */
+       log_info("device count: %lu\n", (long unsigned int)_dev_lst.size());
        _lstnr_thrd     = 0;
        pthread_create(&_lstnr_thrd,
                        NULL,