diff options
author | Dave Barach <dave@barachs.net> | 2020-08-06 12:10:09 -0400 |
---|---|---|
committer | Dave Barach <dave@barachs.net> | 2020-08-06 12:10:50 -0400 |
commit | 11fb09e38ffcbadc2629361377413f3ce12ec4da (patch) | |
tree | 65d2a0a16b6e1fce5bec0dba1368dca5db3bc9e3 /src/svm/svm_fifo.c | |
parent | 586462fabcc913a5a4fa9115d4b5caf33dfdb347 (diff) |
misc: harmonize names
Type: fix
Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: Ibad744788e200ce012ad88ff59c2c34920742454
Diffstat (limited to 'src/svm/svm_fifo.c')
-rw-r--r-- | src/svm/svm_fifo.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/svm/svm_fifo.c b/src/svm/svm_fifo.c index 1723cb4fa95..8e3bb0a7c8c 100644 --- a/src/svm/svm_fifo.c +++ b/src/svm/svm_fifo.c @@ -1403,7 +1403,7 @@ svm_fifo_replay (u8 * s, svm_fifo_t * f, u8 no_read, u8 verbose) u8 *data = 0; svm_fifo_trace_elem_t *trace; u32 offset; - svm_fifo_t *dummy_fifo; + svm_fifo_t *placeholder_fifo; if (!f) return s; @@ -1416,7 +1416,7 @@ svm_fifo_replay (u8 * s, svm_fifo_t * f, u8 no_read, u8 verbose) trace_len = 0; #endif - dummy_fifo = svm_fifo_alloc (f->size); + placeholder_fifo = svm_fifo_alloc (f->size); svm_fifo_init (f, f->size); clib_memset (f->head_chunk->data, 0xFF, f->size); vec_validate (data, f->size); @@ -1431,26 +1431,26 @@ svm_fifo_replay (u8 * s, svm_fifo_t * f, u8 no_read, u8 verbose) if (verbose) s = format (s, "adding [%u, %u]:", trace[i].offset, (trace[i].offset + trace[i].len)); - svm_fifo_enqueue_with_offset (dummy_fifo, trace[i].offset, + svm_fifo_enqueue_with_offset (placeholder_fifo, trace[i].offset, trace[i].len, &data[offset]); } else if (trace[i].action == 2) { if (verbose) s = format (s, "adding [%u, %u]:", 0, trace[i].len); - svm_fifo_enqueue (dummy_fifo, trace[i].len, &data[offset]); + svm_fifo_enqueue (placeholder_fifo, trace[i].len, &data[offset]); } else if (!no_read) { if (verbose) s = format (s, "read: %u", trace[i].len); - svm_fifo_dequeue_drop (dummy_fifo, trace[i].len); + svm_fifo_dequeue_drop (placeholder_fifo, trace[i].len); } if (verbose) - s = format (s, "%U", format_svm_fifo, dummy_fifo, 1); + s = format (s, "%U", format_svm_fifo, placeholder_fifo, 1); } - s = format (s, "result: %U", format_svm_fifo, dummy_fifo, 1); + s = format (s, "result: %U", format_svm_fifo, placeholder_fifo, 1); return s; } |