Blame SOURCES/0030-linux-emmc-update-for-internal-API-breakage.patch

36520b
From 0c44e3d75a9c3a2a1d4cef3c1b836aa0d7fb004f Mon Sep 17 00:00:00 2001
36520b
From: Peter Jones <pjones@redhat.com>
36520b
Date: Fri, 3 Aug 2018 10:02:02 -0400
36520b
Subject: [PATCH 30/39] linux-emmc: update for internal API breakage.
36520b
36520b
Alek wrote his code before I made debug() imply LOG_DEBUG, so we need to
36520b
change that here as well.
36520b
36520b
Signed-off-by: Peter Jones <pjones@redhat.com>
36520b
---
36520b
 src/linux-emmc.c | 12 ++++++------
36520b
 1 file changed, 6 insertions(+), 6 deletions(-)
36520b
36520b
diff --git a/src/linux-emmc.c b/src/linux-emmc.c
36520b
index f0c9e635cb6..87e92477554 100644
36520b
--- a/src/linux-emmc.c
36520b
+++ b/src/linux-emmc.c
36520b
@@ -58,15 +58,15 @@ parse_emmc(struct device *dev, const char *current, const char *root UNUSED)
36520b
         spaces[pos0] = '\0';
36520b
         pos0 = 0;
36520b
 
36520b
-        debug(DEBUG, "entry");
36520b
+        debug("entry");
36520b
 
36520b
-        debug(DEBUG, "searching for mmc_host/mmc0/mmc0:0001/block/mmcblk0 or mmc_host/mmc0/mmc0:0001/block/mmcblk0/mmcblk0p1");
36520b
+        debug("searching for mmc_host/mmc0/mmc0:0001/block/mmcblk0 or mmc_host/mmc0/mmc0:0001/block/mmcblk0/mmcblk0p1");
36520b
         rc = sscanf(current, "mmc_host/mmc%d/mmc%d:%d/block/mmcblk%d%n/mmcblk%dp%d%n",
36520b
                     &tosser0, &tosser1, &tosser2, &slot_id,
36520b
                     &pos0, &tosser3, &partition, &pos1);
36520b
-        debug(DEBUG, "current:\"%s\" rc:%d pos0:%d pos1:%d\n", current, rc, pos0, pos1);
36520b
-        arrow(DEBUG, spaces, 9, pos0, rc, 4);
36520b
-        arrow(DEBUG, spaces, 9, pos1, rc, 6);
36520b
+        debug("current:\"%s\" rc:%d pos0:%d pos1:%d\n", current, rc, pos0, pos1);
36520b
+        arrow(LOG_DEBUG, spaces, 9, pos0, rc, 4);
36520b
+        arrow(LOG_DEBUG, spaces, 9, pos1, rc, 6);
36520b
         /*
36520b
          * If it isn't of that form, it's not one of our emmc devices.
36520b
          */
36520b
@@ -92,7 +92,7 @@ dp_create_emmc(struct device *dev,
36520b
 {
36520b
         ssize_t sz;
36520b
 
36520b
-        debug(DEBUG, "entry");
36520b
+        debug("entry");
36520b
 
36520b
         sz = efidp_make_emmc(buf + off, size ? size - off : 0,
36520b
                              dev->emmc_info.slot_id);
36520b
-- 
36520b
2.17.1
36520b