Permalink
Browse files

minor fix: printf format

  • Loading branch information...
1 parent e5f23a1 commit 16e1d1ccd12f4fde6d8237870a23f5a0a9b4538e @cloudwu committed May 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 map.c
View
2 map.c
@@ -134,6 +134,6 @@ map_dump(struct map *m) {
int i;
for (i=0;i<m->size;i++) {
struct node * n = &(m->hash[i]);
- printf("[%d] fd = %d , id = %d , next = %ld\n",i,n->fd,n->id,(n->next - m->hash));
+ printf("[%d] fd = %d , id = %d , next = %d\n",i,n->fd,n->id,(int)(n->next - m->hash));
}
}

0 comments on commit 16e1d1c

Please sign in to comment.