err = write(output, (void *) hdr, bs);
if (err != bs) {
- fprintf(stderr, "Failed to flush all data to file!");
+ fprintf(stderr, "Failed to flush all data to file!\n");
goto close_output;
}
full_size = (le16_to_cpu(hdr->dalb3) * bs) + offset;
break;
default:
- fprintf(stderr, "Invalid data area requested");
+ fprintf(stderr, "Invalid data area requested\n");
err = -EINVAL;
goto close_output;
}
err = write(output, (void *) page_log, bs);
if (err != bs) {
- fprintf(stderr, "Failed to flush all data to file!");
+ fprintf(stderr, "Failed to flush all data to file!\n");
break;
}
err = 0;
err = -ENOTBLK;
goto close_fd;
}
- }
+ }
err = nvme_identify_ns(fd, cfg.namespace_id, cfg.force, &ns);
if (!err)
goto ret;
if (cfg.offset == -1) {
- fprintf(stderr, "offset required param");
+ fprintf(stderr, "offset required param\n");
err = -EINVAL;
goto close_fd;
}
goto ret;
if (cfg.offset == -1) {
- fprintf(stderr, "offset required param");
+ fprintf(stderr, "offset required param\n");
err = -EINVAL;
goto close_fd;
}
if (cfg.value == -1) {
- fprintf(stderr, "value required param");
+ fprintf(stderr, "value required param\n");
err = -EINVAL;
goto close_fd;
}
"Latency Statistics Tracking (FID 0x%X) is currently (%i).\n",
fid, result);
} else {
- printf("Could not read feature id 0xE2.");
+ printf("Could not read feature id 0xE2.\n");
return err;
}
break;
nvme_status_to_string(err), err);
} else if (err < 0) {
perror("Enable latency tracking");
- fprintf(stderr, "Command failed while parsing.");
+ fprintf(stderr, "Command failed while parsing.\n");
} else {
printf("Successfully set enable bit for FID (0x%X) to %i.\n",
fid, option);
}
break;
default:
- printf("%d not supported.", option);
+ printf("%d not supported.\n", option);
return EINVAL;
}
return fd;