replace env_print with printf
authorWendy Liang <jliang@xilinx.com>
Thu, 2 Jun 2016 00:12:11 +0000 (17:12 -0700)
committerWendy Liang <jliang@xilinx.com>
Thu, 13 Oct 2016 05:01:43 +0000 (22:01 -0700)
Signed-off-by: Wendy Liang <jliang@xilinx.com>
lib/include/openamp/virtqueue.h
lib/virtio/virtqueue.c

index f7186d847525fbaba129ce7efbc3dd18e72ecb56..9bac20edec6034f52ae58537c5663f2fbd7f7037 100644 (file)
@@ -154,7 +154,7 @@ typedef void vq_notify(struct virtqueue *);
 #if (VQUEUE_DEBUG == true)
 
 #define VQASSERT(_vq, _exp, _msg) do{ \
-    if (!(_exp)){ env_print("%s: %s - "_msg, __func__, (_vq)->vq_name); while(1);} \
+    if (!(_exp)){ printf("%s: %s - "_msg, __func__, (_vq)->vq_name); while(1);} \
     } while(0)
 
 #define VQ_RING_ASSERT_VALID_IDX(_vq, _idx)            \
index c7bd4dde3df8986a4becfc5a633bf5b26d7e47ae..03418a8cd583a7951d67c4ce9ff2ad366268eb79 100644 (file)
@@ -306,7 +306,7 @@ void virtqueue_free(struct virtqueue *vq)
        if (vq != VQ_NULL) {
 
                if (vq->vq_free_cnt != vq->vq_nentries) {
-                       env_print
+                       printf
                            ("\r\nWARNING %s: freeing non-empty virtqueue\r\n",
                             vq->vq_name);
                }
@@ -459,7 +459,7 @@ void virtqueue_dump(struct virtqueue *vq)
        if (vq == VQ_NULL)
                return;
 
-       env_print("VQ: %s - size=%d; free=%d; used=%d; queued=%d; "
+       printf("VQ: %s - size=%d; free=%d; used=%d; queued=%d; "
                  "desc_head_idx=%d; avail.idx=%d; used_cons_idx=%d; "
                  "used.idx=%d; avail.flags=0x%x; used.flags=0x%x\r\n",
                  vq->vq_name, vq->vq_nentries, vq->vq_free_cnt,