UnifyFS icon indicating copy to clipboard operation
UnifyFS copied to clipboard

Implement or remove unifycr_print_chunk_list()

Open nedbass opened this issue 7 years ago • 1 comments

Commit 75543ec removed the commented out code from unifycr_print_chunk_list() shown below. This left a function stub behind that should be fully implemented or removed if it's not needed.

/* debug function to print list of chunks constituting a file
 * and to test above function*/
void unifycr_print_chunk_list(char *path)
{
#if 0
    chunk_list_t *chunk_list;
    chunk_list_t *chunk_element;

    chunk_list = unifycr_get_chunk_list(path);

    fprintf(stdout, "-------------------------------------\n");
    LL_FOREACH(chunk_list, chunk_element) {
        printf("%d,%d,%p,%ld\n", chunk_element->chunk_id,
               chunk_element->location,
               chunk_element->chunk_offset,
               chunk_element->spillover_offset);
    }

    LL_FOREACH(chunk_list, chunk_element) {
        free(chunk_element);
    }
    fprintf(stdout, "\n");
    fprintf(stdout, "-------------------------------------\n");
#endif
}

nedbass avatar Dec 22 '17 18:12 nedbass

This will be dropped with https://github.com/LLNL/UnifyCR/pull/241/commits/3fc6eb2fe2d24a494ec235558a0d48cb9a1a58ec

adammoody avatar Dec 17 '18 20:12 adammoody