mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
girrepository: Drop trailing new line on GMessages
This commit is contained in:
parent
d78b6c55bc
commit
2ee2088f4a
@ -392,7 +392,7 @@ gi_callable_info_create_closure (GICallableInfo *callable_info,
|
|||||||
closure = ffi_closure_alloc (sizeof (GIClosureWrapper), &exec_ptr);
|
closure = ffi_closure_alloc (sizeof (GIClosureWrapper), &exec_ptr);
|
||||||
if (!closure)
|
if (!closure)
|
||||||
{
|
{
|
||||||
g_warning ("could not allocate closure\n");
|
g_warning ("could not allocate closure");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
closure->writable_self = closure;
|
closure->writable_self = closure;
|
||||||
@ -405,7 +405,7 @@ gi_callable_info_create_closure (GICallableInfo *callable_info,
|
|||||||
atypes);
|
atypes);
|
||||||
if (status != FFI_OK)
|
if (status != FFI_OK)
|
||||||
{
|
{
|
||||||
g_warning ("ffi_prep_cif failed: %d\n", status);
|
g_warning ("ffi_prep_cif failed: %d", status);
|
||||||
ffi_closure_free (closure);
|
ffi_closure_free (closure);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -413,7 +413,7 @@ gi_callable_info_create_closure (GICallableInfo *callable_info,
|
|||||||
status = ffi_prep_closure_loc (&closure->ffi_closure, cif, callback, user_data, exec_ptr);
|
status = ffi_prep_closure_loc (&closure->ffi_closure, cif, callback, user_data, exec_ptr);
|
||||||
if (status != FFI_OK)
|
if (status != FFI_OK)
|
||||||
{
|
{
|
||||||
g_warning ("ffi_prep_closure failed: %d\n", status);
|
g_warning ("ffi_prep_closure failed: %d", status);
|
||||||
ffi_closure_free (closure);
|
ffi_closure_free (closure);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -368,7 +368,7 @@ gi_ir_module_build_typelib (GIIrModule *module)
|
|||||||
nodes_with_attributes = NULL;
|
nodes_with_attributes = NULL;
|
||||||
n_entries = g_list_length (module->entries);
|
n_entries = g_list_length (module->entries);
|
||||||
|
|
||||||
g_message ("%d entries (%d local), %d dependencies\n", n_entries, n_local_entries,
|
g_message ("%d entries (%d local), %d dependencies", n_entries, n_local_entries,
|
||||||
g_list_length (module->dependencies));
|
g_list_length (module->dependencies));
|
||||||
|
|
||||||
dir_size = n_entries * sizeof (DirEntry);
|
dir_size = n_entries * sizeof (DirEntry);
|
||||||
@ -397,7 +397,7 @@ gi_ir_module_build_typelib (GIIrModule *module)
|
|||||||
|
|
||||||
size += sizeof (Section) * NUM_SECTIONS;
|
size += sizeof (Section) * NUM_SECTIONS;
|
||||||
|
|
||||||
g_message ("allocating %d bytes (%d header, %d directory, %d entries)\n",
|
g_message ("allocating %d bytes (%d header, %d directory, %d entries)",
|
||||||
size, header_size, dir_size, size - header_size - dir_size);
|
size, header_size, dir_size, size - header_size - dir_size);
|
||||||
|
|
||||||
data = g_malloc0 (size);
|
data = g_malloc0 (size);
|
||||||
@ -535,7 +535,7 @@ gi_ir_module_build_typelib (GIIrModule *module)
|
|||||||
header->n_attributes = build.n_attributes;
|
header->n_attributes = build.n_attributes;
|
||||||
|
|
||||||
if (offset2 > old_offset + gi_ir_node_get_full_size (node))
|
if (offset2 > old_offset + gi_ir_node_get_full_size (node))
|
||||||
g_error ("left a hole of %d bytes\n", offset2 - old_offset - gi_ir_node_get_full_size (node));
|
g_error ("left a hole of %d bytes", offset2 - old_offset - gi_ir_node_get_full_size (node));
|
||||||
}
|
}
|
||||||
|
|
||||||
entry++;
|
entry++;
|
||||||
|
@ -192,7 +192,7 @@ gi_ir_node_new (GIIrNodeTypeId type,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
g_error ("Unhandled node type %d\n", type);
|
g_error ("Unhandled node type %d", type);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -421,7 +421,7 @@ gi_ir_node_free (GIIrNode *node)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
g_error ("Unhandled node type %d\n", node->type);
|
g_error ("Unhandled node type %d", node->type);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -560,8 +560,7 @@ gi_ir_node_get_size (GIIrNode *node)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
g_error ("Unhandled node type '%s'\n",
|
g_error ("Unhandled node type '%s'", gi_ir_node_type_to_string (node->type));
|
||||||
gi_ir_node_type_to_string (node->type));
|
|
||||||
size = 0;
|
size = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -672,7 +671,7 @@ gi_ir_node_get_full_size_internal (GIIrNode *parent,
|
|||||||
size += sizeof (ErrorTypeBlob);
|
size += sizeof (ErrorTypeBlob);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
g_error ("Unknown type tag %d\n", type->tag);
|
g_error ("Unknown type tag %d", type->tag);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -879,7 +878,7 @@ gi_ir_node_get_full_size_internal (GIIrNode *parent,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
g_error ("Unknown type tag %d\n", node->type);
|
g_error ("Unknown type tag %d", node->type);
|
||||||
size = 0;
|
size = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -991,7 +990,7 @@ gi_ir_node_add_member (GIIrNode *node,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
g_error ("Cannot add a member to unknown type tag type %d\n",
|
g_error ("Cannot add a member to unknown type tag type %d",
|
||||||
node->type);
|
node->type);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -1576,7 +1575,7 @@ gi_ir_node_build_typelib (GIIrNode *node,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
g_error ("Unknown type tag %d\n", type->tag);
|
g_error ("Unknown type tag %d", type->tag);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -698,7 +698,7 @@ resolve_aliases (ParseContext *ctx, const gchar *type)
|
|||||||
seen_values = g_slist_prepend (seen_values, (char*)lookup);
|
seen_values = g_slist_prepend (seen_values, (char*)lookup);
|
||||||
while (g_hash_table_lookup_extended (ctx->current_module->aliases, lookup, &orig, &value))
|
while (g_hash_table_lookup_extended (ctx->current_module->aliases, lookup, &orig, &value))
|
||||||
{
|
{
|
||||||
g_debug ("Resolved: %s => %s\n", lookup, (char*)value);
|
g_debug ("Resolved: %s => %s", lookup, (char*)value);
|
||||||
lookup = value;
|
lookup = value;
|
||||||
if (g_slist_find_custom (seen_values, lookup,
|
if (g_slist_find_custom (seen_values, lookup,
|
||||||
(GCompareFunc)strcmp) != NULL)
|
(GCompareFunc)strcmp) != NULL)
|
||||||
@ -1064,7 +1064,7 @@ parse_property_transfer (GIIrNodeProperty *property,
|
|||||||
GIIrNodeInterface *iface = (GIIrNodeInterface *)CURRENT_NODE (ctx);
|
GIIrNodeInterface *iface = (GIIrNodeInterface *)CURRENT_NODE (ctx);
|
||||||
|
|
||||||
g_debug ("required attribute 'transfer-ownership' is missing from "
|
g_debug ("required attribute 'transfer-ownership' is missing from "
|
||||||
"property '%s' in type '%s.%s'. Assuming 'none'\n",
|
"property '%s' in type '%s.%s'. Assuming 'none'",
|
||||||
property->node.name, ctx->namespace, iface->node.name);
|
property->node.name, ctx->namespace, iface->node.name);
|
||||||
#endif
|
#endif
|
||||||
transfer = "none";
|
transfer = "none";
|
||||||
@ -2849,7 +2849,7 @@ parse_include (GMarkupParseContext *context,
|
|||||||
}
|
}
|
||||||
g_free (girname);
|
g_free (girname);
|
||||||
|
|
||||||
g_debug ("Parsing include %s\n", girpath);
|
g_debug ("Parsing include %s", girpath);
|
||||||
|
|
||||||
if (!g_file_get_contents (girpath, &buffer, &length, &error))
|
if (!g_file_get_contents (girpath, &buffer, &length, &error))
|
||||||
{
|
{
|
||||||
@ -3640,7 +3640,7 @@ end_element_handler (GMarkupParseContext *context,
|
|||||||
state_switch (ctx, ctx->prev_state);
|
state_switch (ctx, ctx->prev_state);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
g_error ("Unhandled state %d in end_element_handler\n", ctx->state);
|
g_error ("Unhandled state %d in end_element_handler", ctx->state);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -168,7 +168,7 @@ check_unresolved (GIBaseInfo *info)
|
|||||||
if (gi_base_info_get_info_type (info) != GI_INFO_TYPE_UNRESOLVED)
|
if (gi_base_info_get_info_type (info) != GI_INFO_TYPE_UNRESOLVED)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
g_critical ("Found unresolved type '%s' '%s'\n",
|
g_critical ("Found unresolved type '%s' '%s'",
|
||||||
gi_base_info_get_name (info), gi_base_info_get_namespace (info));
|
gi_base_info_get_name (info), gi_base_info_get_namespace (info));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1452,7 +1452,7 @@ gi_ir_writer_write (const char *filename,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
g_error ("unknown info type %d\n", gi_base_info_get_info_type (info));
|
g_error ("unknown info type %d", gi_base_info_get_info_type (info));
|
||||||
}
|
}
|
||||||
|
|
||||||
gi_base_info_unref (info);
|
gi_base_info_unref (info);
|
||||||
|
Loading…
Reference in New Issue
Block a user