Fix format of long int in log_message call