Skip to content
Snippets Groups Projects
Commit 6dabfeb0 authored by Weronika Lewandowska's avatar Weronika Lewandowska
Browse files

examples: handle fopen in pmreorder list example

parent 8f5f4efc
No related branches found
No related tags found
No related merge requests found
/*
* Copyright 2018, Intel Corporation
* Copyright 2019, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
......@@ -95,6 +95,11 @@ list_print(struct list_root *list)
{
FILE *fp;
fp = fopen("pmreorder_list.log", "w+");
if (fp == NULL) {
perror("fopen pmreorder_list.log");
exit(1);
}
fprintf(fp, "List:\n");
struct list_node *node = NODE_PTR(list, list->head);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment