Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions XDMA/linux-kernel/xdma/libxdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,11 +413,11 @@ static int engine_reg_dump(struct xdma_engine *engine)
static void engine_status_dump(struct xdma_engine *engine)
{
u32 v = engine->status;
char buffer[256];
char buffer[400];
char *buf = buffer;
int len = 0;

len = sprintf(buf, "SG engine %s status: 0x%08x: ", engine->name, v);
len = sprintf(buf, "SG engine %.16s status: 0x%08x: ", engine->name, v);

if ((v & XDMA_STAT_BUSY))
len += sprintf(buf + len, "BUSY,");
Expand All @@ -433,7 +433,7 @@ static void engine_status_dump(struct xdma_engine *engine)
if ((v & XDMA_STAT_MAGIC_STOPPED))
len += sprintf(buf + len, "MAGIC_STOPPED ");
if ((v & XDMA_STAT_INVALID_LEN))
len += sprintf(buf + len, "INVLIAD_LEN ");
len += sprintf(buf + len, "INVALID_LEN ");
if ((v & XDMA_STAT_IDLE_STOPPED))
len += sprintf(buf + len, "IDLE_STOPPED ");
buf[len - 1] = ',';
Expand Down