Skip to content

Commit

Permalink
fix type mismatch in log write
Browse files Browse the repository at this point in the history
cputree prints a log message that formats to long long unsigned, but
gets passed long unsigned, which gcc flags as a warning.  Bring those
into alignment

Signed-off-by: Neil Horman <[email protected]>
  • Loading branch information
Neil Horman authored and Neil Horman committed Jan 4, 2017
1 parent 525c81d commit 09e538e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cputree.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ static void dump_irq(struct irq_info *info, void *data)
indent[i] = log_indent[0];

indent[i] = '\0';
log(TO_CONSOLE, LOG_INFO, "%sInterrupt %i node_num is %d (%s/%llu:%llu) \n", indent,
log(TO_CONSOLE, LOG_INFO, "%sInterrupt %i node_num is %d (%s/%lu:%lu) \n", indent,
info->irq, irq_numa_node(info)->number, classes[info->class], info->load, (info->irq_count - info->last_irq_count));
free(indent);
}
Expand Down

0 comments on commit 09e538e

Please sign in to comment.