search for: g_warning

Displaying 20 results from an estimated 32 matches for "g_warning".

Did you mean: i_warning
2014 Jun 13
4
[libldm 1/3] relax uuid, zlib version requirements
--- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 469ea96..0e7e2ea 100644 --- a/configure.ac +++ b/configure.ac @@ -85,14 +85,14 @@ PKG_CHECK_MODULES([GIO_UNIX], [gio-unix-2.0 >= 2.32.0], ] ) -PKG_CHECK_MODULES([ZLIB], [zlib >= 1.2.5], +PKG_CHECK_MODULES([ZLIB], [zlib >= 1.2], [
2015 Jan 19
1
[PATCH] gobject: fix printf conversion specifier
...@@ -722,6 +722,7 @@ let generate_gobject_session_source () = #include <stdint.h> #include <stdio.h> #include <string.h> + #include <inttypes.h> /* Error quark */ @@ -780,7 +781,7 @@ guestfs_session_event_from_guestfs_event (uint64_t event) pr " } - g_warning (\"guestfs_session_event_from_guestfs_event: invalid event %%lu\", + g_warning (\"guestfs_session_event_from_guestfs_event: invalid event %%\" PRIu64, event); return UINT32_MAX; } -- 1.9.3
2007 Jul 14
0
libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_string.c libswfdec/swfdec_bits.c
..._to_char_5 (SwfdecAsC s[0] = ((guint) swfdec_as_value_to_integer (cx, val)) % 256; s[1] = 0; - utf8 = g_convert (s, -1, "UTF8", "LATIN1", NULL, NULL, NULL); + utf8 = g_convert (s, -1, "UTF-8", "LATIN1", NULL, NULL, NULL); if (utf8 == NULL) { g_warning ("conversion of character %u failed", (guint) s[0]); SWFDEC_AS_VALUE_SET_STRING (val, SWFDEC_AS_STR_EMPTY); @@ -2025,7 +2025,7 @@ swfdec_action_mb_ascii_to_char_5 (Swfdec s[0] = i; s[1] = 0; } - utf8 = g_convert (s, -1, "UTF8", "LATIN1", NULL, NULL,...
2020 Sep 28
0
[RFC PATCH 15/19] tools/vhost-user-rpmb: implement VIRTIO_RPMB_REQ_DATA_WRITE
...16toh(frame->address); >> + offset = r->last_address * RPMB_BLOCK_SIZE; >> + >> + /* >> + * Run the checks from: >> + * 5.12.6.1.3 Device Requirements: Device Operation: Data Write >> + */ >> + if (!r->key) { >> + g_warning("no key programmed"); >> + r->last_result = VIRTIO_RPMB_RES_NO_AUTH_KEY; >> + } else if (block_count == 0 || >> + block_count > r->virtio_config.max_wr_cnt) { >> + r->last_result = VIRTIO_RPMB_RES_GENERAL_FAILURE; >>...
2016 Apr 26
0
evolution libsoup and samba bug 765106
...} else if (!g_ascii_strcasecmp (response, "PW")) { + conn->state = SOUP_NTLM_SSO_FAILED; priv->sso_available = FALSE; g_free (response); } else { @@ -489,7 +490,7 @@ soup_auth_ntlm_get_connection_authorizat priv->sso_available = FALSE; } } else { - g_warning ("NTLM single-sign-on using %s failed", NTLM_AUTH); + g_debug ("NTLM single-sign-on using %s failed", NTLM_AUTH); } } /* If NTLM single-sign-on fails, go back to original @@ -525,7 +526,7 @@ soup_auth_ntlm_get_connection_authorizat #ifdef USE_NTLM_AUTH case SOUP_...
2007 Nov 07
0
14 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_script.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_text_field_movie.c
...uint8 *data, guint len) -{ - SwfdecAsValue *val = swfdec_as_stack_peek (cx, 1); - const char *s = swfdec_as_value_to_string(cx, val); - gunichar *uni; - - uni = g_utf8_to_ucs4_fast (s, -1, NULL); - if (uni == NULL) { - /* This should never happen, everything is valid UTF-8 in here */ - g_warning ("conversion of character %s failed", s); - SWFDEC_AS_VALUE_SET_INT (val, 0); + if (ascii == NULL) { + /* This can happen if a Flash 5 movie gets loaded into a Flash 7 movie */ + SWFDEC_FIXME ("Someone threw unconvertible text %s at Flash <= 5", s); + SWF...
2020 Sep 25
20
[RFC PATCH 00/19] vhost-user-rpmb (Replay Protected Memory Block)
Hi, This is an initial implementation of a vhost-user backend for the VirtIO RPMB device. The device is currently in the draft of the next VirtIO specification and describes block device which uses combination of a key, nonce, hashing and a persistent write counter to prevent replay attacks (hence Replay Protected Memory Block). It is implemented as a vhost-user device because we want to
2007 Nov 28
0
libswfdec/swfdec_loader.c
libswfdec/swfdec_loader.c | 4 ++++ 1 file changed, 4 insertions(+) New commits: commit cbe23b23a56d6529aa7d3800bc626f427a08a3b0 Author: Benjamin Otte <otte at gnome.org> Date: Wed Nov 28 17:33:13 2007 +0100 don't trigger g_warnings for empty files diff --git a/libswfdec/swfdec_loader.c b/libswfdec/swfdec_loader.c index 02c25f1..50d9122 100644 --- a/libswfdec/swfdec_loader.c +++ b/libswfdec/swfdec_loader.c @@ -611,6 +611,10 @@ swfdec_loader_get_text (SwfdecLoader *loader, guint version) /* get the text from the loader *...
2007 Mar 22
0
11 commits - libswfdec/swfdec_color.c libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_movie.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_net_stream.h libswfdec/swfdec_pattern.c libswfdec/swfdec_script.c NEWS test/trace
...path); pattern = cairo_pattern_create_for_surface (surface); cairo_surface_destroy (surface); diff-tree 5f43dccbfd326b8df79249e5c6677a53d961d97e (from 21dc65d52d4f3fcb5801e0a4e6d6702aab67ecd8) Author: Benjamin Otte <otte@gnome.org> Date: Thu Mar 22 13:45:00 2007 +0100 clarify the g_warning: It's a cairo error diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c index 17e2217..3317fb2 100644 --- a/libswfdec/swfdec_movie.c +++ b/libswfdec/swfdec_movie.c @@ -644,7 +644,7 @@ swfdec_movie_render (SwfdecMovie *movie, } #endif if (cairo_status (cr) != CAIRO_STATUS_SU...
2007 Mar 16
0
libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_loader_internal.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_root_movie.c libswfdec/swfdec_xml.c
...urn ""; + case SWFDEC_LOADER_DATA_SWF: + return "swf"; + case SWFDEC_LOADER_DATA_FLV: + return "flv"; + case SWFDEC_LOADER_DATA_XML: + return "xml"; + case SWFDEC_LOADER_DATA_TEXT: + return "txt"; + default: + g_warning ("unknown data type %u", type); + return ""; + } +} + +/*** X-WWW-FORM-URLENCODED ***/ + /* if speed ever gets an issue, use a 256 byte array instead of strchr */ static const char *urlencode_unescaped="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-...
2007 Aug 20
0
8 commits - libswfdec/Makefile.am libswfdec/swfdec_as_string.c libswfdec/swfdec_as_string.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_load_object.c libswfdec/swfdec_loadvars_as.c test/trace
...300 Fix unescape in version 5 I just broke diff --git a/libswfdec/swfdec_as_string.c b/libswfdec/swfdec_as_string.c index a200a22..720bc5c 100644 --- a/libswfdec/swfdec_as_string.c +++ b/libswfdec/swfdec_as_string.c @@ -523,7 +523,7 @@ swfdec_as_string_unescape_5 (SwfdecAsCon } else { g_warning ("can't convert %s to UTF-8", msg); g_free (out); - return NULL; + return g_strdup (""); } #undef APPEND } @@ -655,7 +655,7 @@ swfdec_as_string_unescape_6 (SwfdecAsCon } else { g_warning ("%s unescaped is invalid UTF-8", msg); g_byte_ar...
2007 Aug 02
0
4 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/swfdec_file_loader.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h player/swfdec_slow_loader.c
...ec_loader_set_property (GObject *obj if (loader->size == 0 && g_value_get_ulong (value) > 0) swfdec_loader_set_size (loader, g_value_get_ulong (value)); break; + case PROP_URL: + loader->url = g_value_dup_boxed (value); + if (loader->url == NULL) { + g_warning ("must set a valid URL"); + loader->url = swfdec_url_new (""); + } + break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec); break; @@ -180,6 +191,9 @@ swfdec_loader_class_init (SwfdecLoaderCl g_object_class_install_propert...
2012 Apr 26
3
[PATCH 1/3] gobject: NFC generated code formatting fix
--- generator/generator_gobject.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/generator_gobject.ml b/generator/generator_gobject.ml index e4c175b..48ddbf0 100644 --- a/generator/generator_gobject.ml +++ b/generator/generator_gobject.ml @@ -391,7 +391,7 @@ let generate_gobject_optargs_source name optargs flags () = pr "G_DEFINE_TYPE(%s, guestfs_%s,
2007 Jun 12
0
Branch 'as' - 3 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_math.c libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_string.c
...rray->data, -1, "UTF8", "LATIN1", NULL, NULL, NULL); if (out) { - SWFDEC_AS_VALUE_SET_STRING (ret, swfdec_as_context_get_string (object->context, out)); + SWFDEC_AS_VALUE_SET_STRING (ret, swfdec_as_context_get_string (cx, out)); g_free (out); } else { g_warning ("can't convert %s to UTF-8", msg); @@ -390,15 +399,16 @@ swfdec_as_string_unescape_5 (SwfdecAsObj } static void -swfdec_as_string_escape (SwfdecAsObject *object, guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret) +swfdec_as_string_escape (SwfdecAsContext *cx, SwfdecAsObject *ob...
2007 Sep 04
0
5 commits - doc/Makefile.am doc/swfdec-sections.txt libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.c libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_native_function.h
...mp;argv[i]); + } + break; + case 'o': + case 'O': + { + SwfdecAsObject **o = va_arg (varargs, SwfdecAsObject **); + *o = swfdec_as_value_to_object (cx, &argv[i]); + if (*o == NULL && *args != 'O') + return FALSE; + } + break; + default: + g_warning ("'%c' is not a valid type conversion", *args); + return FALSE; + } + } + if (*args) + return FALSE; + return TRUE; +} diff --git a/libswfdec/swfdec_as_native_function.h b/libswfdec/swfdec_as_native_function.h index 4a1ab28..5d7923c 100644 --- a/libswfdec/swfdec_as_native...
2007 Sep 08
0
9 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_video_movie_as.c
...ts bits; SwfdecScript *script; swfdec_bits_init_data (&bits, data, length); - script = swfdec_script_new_from_bits (&bits, "init", context->version); + script = swfdec_script_new_from_bits (&bits, "init", version); if (script == NULL) { g_warning ("script passed to swfdec_as_context_run_init_script is invalid"); return; } swfdec_as_object_run (context->global, script); swfdec_script_unref (script); + } else { + SWFDEC_LOG ("not running init script, since version is <= 4"); } } @@ -12...
2018 May 15
12
[PATCH libldm 00/12] New API: an ability to retrieve created device-mapper devices back after they have been created.
The main goal of these patch series is to implement a new API that allows to retrieve created device-mapper devices for volumes and partitions back after they have been created. As part of this patch: - required libdevmapper version was bumped to 1.02. I think it is safe because it was released more then 10 years ago; - newer version of libdevmapper allowed to simplify code base a little bit; -
2007 Nov 12
0
13 commits - libswfdec/Makefile.am libswfdec/swfdec_decoder.c libswfdec/swfdec_decoder.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_flv_decoder.h libswfdec/swfdec_image.c libswfdec/swfdec_image_decoder.c libswfdec/swfdec_image_decoder.h
...ata_type_get_extension (SwfdecLoaderDataType type) return "xml"; case SWFDEC_LOADER_DATA_TEXT: return "txt"; + case SWFDEC_LOADER_DATA_JPEG: + return "jpg"; + case SWFDEC_LOADER_DATA_PNG: + return "png"; default: g_warning ("unknown data type %u", type); return ""; diff --git a/libswfdec/swfdec_loader.h b/libswfdec/swfdec_loader.h index 9eb5b2a..0d0c6a4 100644 --- a/libswfdec/swfdec_loader.h +++ b/libswfdec/swfdec_loader.h @@ -31,7 +31,9 @@ typedef enum { SWFDEC_LOADER_DATA_SWF, SWFDE...
2007 Nov 01
0
3 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c
...ull = swfdec_url_new_relative (swfdec_loader_get_url (player->resource->loader), url); - /* figure out the right security object (FIXME: let the person loading it provide it?) */ - cx = SWFDEC_AS_CONTEXT (player); - if (cx->frame) { - sec = cx->frame->security; - } else { - g_warning ("swfdec_player_load() should only be called from scripts"); - sec = SWFDEC_SECURITY (player->resource); - } - if (!swfdec_security_allow_url (sec, full)) { - SWFDEC_ERROR ("not allowing access to %s", url); - return NULL; - } - - if (buffer) { - return swfdec...
2007 Mar 27
0
15 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/.gitignore libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h
..._set_cursor (window, cursor); + gdk_cursor_unref (cursor); + break; + case SWFDEC_MOUSE_CURSOR_NORMAL: + cursor = gdk_cursor_new_for_display (display, GDK_LEFT_PTR); + gdk_window_set_cursor (window, cursor); + gdk_cursor_unref (cursor); + break; + default: + g_warning ("invalid cursor %d", (int) swfcursor); + gdk_window_set_cursor (window, NULL); + break; + } +} + +static void +swfdec_gtk_widget_realize (GtkWidget *widget) +{ + GdkWindowAttr attributes; + gint attributes_mask; + + GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED); + + attribut...