瀏覽代碼

Fix warning for printf on a size_t variable.

Ioannis Koutras 13 年之前
父節點
當前提交
85261d40a0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      sys_alloc.c

+ 1 - 1
sys_alloc.c

@@ -18,7 +18,7 @@ void *sys_alloc(heap_t *heap, size_t size) {
 
 	ptr = sbrk((int) allocation_size);
 	if(ptr == (void *) -1) {
-		printf("sbrk problem for size of: %d\n", allocation_size);
+		printf("sbrk problem for size of: %zu\n", allocation_size);
 		printf( "Error on sbrk: %s\n", strerror( errno ) );
 	}
 	ptr = (void *) ((char *) ptr + HEADER_SIZE);