Skip to content

[Minor Logging Bug] Swapped error messages in dma_local_copy_sample.c #11

Description

@CuteSSu

Hello, I am reporting a minor bug I found in the sample code.
when dst_mmap registration fails, it logs "source", and when src_mmap registration fails, it logs "destination"

location: samples/doca_dma/dma_local_copy/dma_local_copy_sample.c

	result = register_memory_range_and_start_mmap(state->dst_mmap, dst_buffer, length);
	if (result != DOCA_SUCCESS) {
		DOCA_LOG_ERR("Failed to create and start source mmap: %s", doca_error_get_descr(result));
		goto stop_dma;
	}

	result = register_memory_range_and_start_mmap(state->src_mmap, src_buffer, length);
	if (result != DOCA_SUCCESS) {
		DOCA_LOG_ERR("Failed to create and start destination mmap: %s", doca_error_get_descr(result));
		goto stop_dma;
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions