Promote uid_t value to long and print with %ld to prevent compile