Skip to content

Commit ddffb9e

Browse files
committed
Merge branch 'es/bugreport' into pu
The "bugreport" tool. As the scope of the topic got trimmed, hopefully these early parts can be polished quickly enough to be merged down. * es/bugreport: SQUASH???
2 parents ff80b77 + f2cb7fd commit ddffb9e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

compat/compiler.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ static inline void get_compiler_info(struct strbuf *info)
1616
#endif
1717

1818
#ifdef _MSC_VER
19-
strbuf_addf(info, "MSVC version: %s\n", _MSC_FULL_VER);
19+
strbuf_addf(info, "MSVC version: %02d.%02d.%05d\n",
20+
_MSC_VER / 100, _MSC_VER % 100, _MSC_FULL_VER % 100000);
2021
#endif
2122

2223
if (len == info->len)
23-
strbuf_addf(info, _("no compiler information available\n"));
24+
strbuf_addstr(info, _("no compiler information available\n"));
2425
}
2526

2627
static inline void get_libc_info(struct strbuf *info)
@@ -32,7 +33,7 @@ static inline void get_libc_info(struct strbuf *info)
3233
#endif
3334

3435
if (len == info->len)
35-
strbuf_addf(info, _("no libc information available\n"));
36+
strbuf_addstr(info, _("no libc information available\n"));
3637
}
3738

3839
#endif /* COMPILER_H */

0 commit comments

Comments
 (0)