Re: [PATCH v2 02/12] commit-graph: verify file header information

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/12/2018 9:35 AM, Martin Ågren wrote:
+static int verify_commit_graph_error;
+
+static void graph_report(const char *fmt, ...)
+{
+       va_list ap;
+       struct strbuf sb = STRBUF_INIT;
+       verify_commit_graph_error = 1;
+
+       va_start(ap, fmt);
+       strbuf_vaddf(&sb, fmt, ap);
+
+       fprintf(stderr, "%s\n", sb.buf);
+       strbuf_release(&sb);
+       va_end(ap);
+}

That's a good idea. Makes that patch a bit less trivial and this one a bit less difficult.



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux