mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
Fix build warnings when printf a tv_usec.
The debug logs added in r396528 neglected to account for suseconds_t being an int. See r392076 for more info. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396559 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -66,9 +66,10 @@ static int is_timed_out(struct hash_test const *data) {
|
||||
struct timeval now = ast_tvnow();
|
||||
int val = ast_tvdiff_us(data->deadline, now) < 0;
|
||||
if (val) {
|
||||
/* tv_usec is suseconds_t, which could be int or long */
|
||||
ast_test_status_update(data->test, "Now: %ld.%06ld Deadline: %ld.%06ld\n",
|
||||
now.tv_sec, now.tv_usec,
|
||||
data->deadline.tv_sec, data->deadline.tv_usec);
|
||||
data->deadline.tv_sec, (long)data->deadline.tv_usec);
|
||||
}
|
||||
return val;
|
||||
}
|
||||
|
Reference in New Issue
Block a user