~ubuntu-branches/debian/sid/upower/sid

« back to all changes in this revision

Viewing changes to src/up-kbd-backlight.c

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson
  • Date: 2014-07-12 20:45:10 UTC
  • mfrom: (17.1.6 experimental)
  • Revision ID: package-import@ubuntu.com-20140712204510-9rwc7jgforgc8301
Tags: 0.99.0-3
* Team upload.
* Bump Standards-Version to 3.9.5
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
193
193
        /* open directory */
194
194
        dir = g_dir_open ("/sys/class/leds", 0, &error);
195
195
        if (dir == NULL) {
196
 
                g_warning ("failed to get directory: %s", error->message);
 
196
                if (!g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOENT))
 
197
                        g_warning ("failed to open directory: %s", error->message);
197
198
                g_error_free (error);
198
199
                goto out;
199
200
        }