]> git.ozlabs.org Git - petitboot/blobdiff - ui/common/ps3.c
docker: Add build container files
[petitboot] / ui / common / ps3.c
index c62a10d20dffc4f5f8eee107ac42ffa04c549d0a..c9b97b5d2ca9da734b8b934c5113cc7c5ae59e18 100644 (file)
@@ -16,7 +16,9 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-#define _GNU_SOURCE
+#if defined(HAVE_CONFIG_H)
+#include "config.h"
+#endif
 
 #include <assert.h>
 #include <errno.h>
 
 #include <assert.h>
 #include <errno.h>
@@ -141,11 +143,11 @@ int ps3_flash_get_values(struct ps3_flash_values *values)
        if (!result)
                values->video_mode = (uint16_t)tmp;
 
        if (!result)
                values->video_mode = (uint16_t)tmp;
 
-       pb_log("%s: default_item: %x\n", __func__,
+       pb_debug("%s: default_item: %x\n", __func__,
                (unsigned int)values->default_item);
                (unsigned int)values->default_item);
-       pb_log("%s: timeout: %u\n", __func__,
+       pb_debug("%s: timeout: %u\n", __func__,
                (unsigned int)values->timeout);
                (unsigned int)values->timeout);
-       pb_log("%s: video_mode:   %u\n", __func__,
+       pb_debug("%s: video_mode:   %u\n", __func__,
                (unsigned int)values->video_mode);
 fail:
        return (result || sum) ? -1 : 0;
                (unsigned int)values->video_mode);
 fail:
        return (result || sum) ? -1 : 0;
@@ -163,8 +165,8 @@ int ps3_flash_set_values(const struct ps3_flash_values *values)
        int result;
        struct ps3_flash_ctx fc;
 
        int result;
        struct ps3_flash_ctx fc;
 
-       pb_log("%s: default_item: %u\n", __func__, values->default_item);
-       pb_log("%s: video_mode:   %u\n", __func__, values->video_mode);
+       pb_debug("%s: default_item: %u\n", __func__, values->default_item);
+       pb_debug("%s: video_mode:   %u\n", __func__, values->video_mode);
 
        result = ps3_flash_open(&fc, "r+");
 
 
        result = ps3_flash_open(&fc, "r+");
 
@@ -245,7 +247,7 @@ static int ps3_video_ioctl(int request, unsigned int *mode_id)
 
 int ps3_set_video_mode(unsigned int mode_id)
 {
 
 int ps3_set_video_mode(unsigned int mode_id)
 {
-       pb_log("%s: %u\n", __func__, mode_id);
+       pb_debug("%s: %u\n", __func__, mode_id);
        return ps3_video_ioctl(PS3FB_IOCTL_SETMODE, &mode_id);
 }
 
        return ps3_video_ioctl(PS3FB_IOCTL_SETMODE, &mode_id);
 }