Signed-off-by: Mika Laitio <lamikr@pilppa.org>
        //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,