added function for convertion debug info
[libfirm] / ir / stat / dags.c
index 2e94efe..60f2f52 100644 (file)
@@ -84,7 +84,7 @@ static dag_entry_t *get_irn_dag_entry(ir_node *n)
 #define set_irn_dag_entry(n, e) set_irn_link(n, e)
 
 /**
- * checks wheater a node is an arg
+ * checks wether a node is an arg
  */
 static int is_arg(ir_node *node)
 {
@@ -152,7 +152,7 @@ static void connect_dags(ir_node *node, void *env)
     set_irn_dag_entry(node, entry);
   }
 
-  /* if this option is set, Loads are onways leaves */
+  /* if this option is set, Loads are allways leaves */
   if (dag_env->options & FIRMSTAT_LOAD_IS_LEAVE && get_irn_op(node) == op_Load)
     return;
 
@@ -274,7 +274,7 @@ void count_dags_in_graph(graph_entry_t *global, graph_entry_t *graph)
   /* count them */
   irg_walk_graph(graph->irg, connect_dags, NULL, &root_env);
 
-  printf("Graph %p %s --- %d\n", graph->irg, get_entity_name(get_irg_entity(graph->irg)),
+  printf("Graph %p %s --- %d\n", (void *)graph->irg, get_entity_name(get_irg_entity(graph->irg)),
       root_env.num_of_dags);
 
   for (id = 0, entry = root_env.list_of_dags; entry; entry = entry->next) {