- if (options.output_path) {
- pr_debug("Opening %s for writing the log file\n",
- options.output_path);
-
- out_fd = open(options.output_path,
- O_CREAT | O_APPEND | O_WRONLY, 0664);
- if (out_fd < 0) {
- pr_err("Failed to open file %s for writing: %m\n",
- options.output_path);
- ret = 1;
- goto out;
- }
- }