Skip to content

Commit

Permalink
remove spaces and dashes
Browse files Browse the repository at this point in the history
  • Loading branch information
MCUdude committed Nov 16, 2023
1 parent ff189b8 commit 2670f20
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/avrpart.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,8 @@ void avr_mem_display(const char *prefix, FILE *f, const AVRMEM *m,
// Print memory table header
if(p->prog_modes & (PM_PDI | PM_UPDI)) {
fprintf(f,
"\n%s %-*s %*s %-*s %*s \n"
"%s-%*.*s--%*.*s--%*.*s--%*.*s-\n",
"\n%s%-*s %*s %-*s %*s\n"
"%s%*.*s--%*.*s--%*.*s--%*.*s\n",
prefix,
m_char_max[0], table_colum[0],
m_char_max[1], table_colum[1],
Expand All @@ -550,8 +550,8 @@ void avr_mem_display(const char *prefix, FILE *f, const AVRMEM *m,
m_char_max[3], m_char_max[3], table_padding);
} else {
fprintf(f,
"\n%s %-*s %*s %-*s \n"
"%s-%*.*s--%*.*s--%*.*s-\n",
"\n%s%-*s %*s %-*s\n"
"%s%*.*s--%*.*s--%*.*s\n",
prefix,
m_char_max[0], table_colum[0],
m_char_max[1], table_colum[1],
Expand Down Expand Up @@ -595,7 +595,7 @@ void avr_mem_display(const char *prefix, FILE *f, const AVRMEM *m,
m_char_max[2], m->page_size,
m_char_max[3]-m_offset_digits, "", m->offset);
} else {
fprintf(f, "%s %-*s %*d %*d \n",
fprintf(f, "%s%-*s %*d %*d\n",
prefix,
m_char_max[0], d,
m_char_max[1] < 4? 4: m_char_max[1], m->size,
Expand Down Expand Up @@ -626,8 +626,8 @@ static int avr_variants_display(const char *prefix, FILE *f, const AVRPART *p) {

// Print variants table header
fprintf(f,
"\n%s %-*s %-*s %-*s %-*s %-*s \n"
"%s-%*.*s--%*.*s--%*.*s--%*.*s--%*.*s-\n",
"\n%s%-*s %-*s %-*s %-*s %-*s\n"
"%s%*.*s--%*.*s--%*.*s--%*.*s--%*.*s\n",
prefix,
var_tok_len[0], var_table_column[0],
var_tok_len[1], var_table_column[1],
Expand All @@ -646,7 +646,7 @@ static int avr_variants_display(const char *prefix, FILE *f, const AVRPART *p) {
sscanf(ldata(ln), "%49[^:]: %49[^,], Fmax=%49[^,], T=[%49[^]]], Vcc=[%49[^]]]",
var_tok[0], var_tok[1], var_tok[2], var_tok[3], var_tok[4]);
fprintf(f,
"%s %-*s %-*s %-*s [%-*s] [%-*s] \n",
"%s%-*s %-*s %-*s [%-*s] [%-*s]\n",
prefix,
var_tok_len[0], var_tok[0],
var_tok_len[1], var_tok[1],
Expand Down

0 comments on commit 2670f20

Please sign in to comment.