Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions block/partitions/acorn.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ int adfspart_check_ADFS(struct parsed_partitions *state)
break;
}
}
seq_buf_puts(&state->pp_buf, "\n");
seq_buf_putc(&state->pp_buf, '\n');
return 1;
}
#endif
Expand Down Expand Up @@ -397,7 +397,7 @@ int adfspart_check_ICS(struct parsed_partitions *state)
}

put_dev_sector(sect);
seq_buf_puts(&state->pp_buf, "\n");
seq_buf_putc(&state->pp_buf, '\n');
return 1;
}
#endif
Expand Down Expand Up @@ -468,7 +468,7 @@ int adfspart_check_POWERTEC(struct parsed_partitions *state)
}

put_dev_sector(sect);
seq_buf_puts(&state->pp_buf, "\n");
seq_buf_putc(&state->pp_buf, '\n');
return 1;
}
#endif
Expand Down Expand Up @@ -539,7 +539,7 @@ int adfspart_check_EESOX(struct parsed_partitions *state)

size = get_capacity(state->disk);
put_partition(state, slot++, start, size - start);
seq_buf_puts(&state->pp_buf, "\n");
seq_buf_putc(&state->pp_buf, '\n');
}

return i ? 1 : 0;
Expand Down
2 changes: 1 addition & 1 deletion block/partitions/amiga.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ int amiga_partition(struct parsed_partitions *state)
}
res = 1;
}
seq_buf_puts(&state->pp_buf, "\n");
seq_buf_putc(&state->pp_buf, '\n');

rdb_done:
return res;
Expand Down
2 changes: 1 addition & 1 deletion block/partitions/atari.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ int atari_partition(struct parsed_partitions *state)
#endif
put_dev_sector(sect);

seq_buf_puts(&state->pp_buf, "\n");
seq_buf_putc(&state->pp_buf, '\n');

return 1;
}
2 changes: 1 addition & 1 deletion block/partitions/cmdline.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ int cmdline_partition(struct parsed_partitions *state)
cmdline_parts_set(parts, disk_size, state);
cmdline_parts_verifier(1, state);

seq_buf_puts(&state->pp_buf, "\n");
seq_buf_putc(&state->pp_buf, '\n');

return 1;
}
2 changes: 1 addition & 1 deletion block/partitions/efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,6 @@ int efi_partition(struct parsed_partitions *state)
}
kfree(ptes);
kfree(gpt);
seq_buf_puts(&state->pp_buf, "\n");
seq_buf_putc(&state->pp_buf, '\n');
return 1;
}
10 changes: 5 additions & 5 deletions block/partitions/ibm.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ static int find_vol1_partitions(struct parsed_partitions *state,
blk++;
data = read_part_sector(state, blk * secperblk, &sect);
}
seq_buf_puts(&state->pp_buf, "\n");
seq_buf_putc(&state->pp_buf, '\n');

if (!data)
return -1;
Expand Down Expand Up @@ -254,7 +254,7 @@ static int find_lnx1_partitions(struct parsed_partitions *state,
size = nr_sectors;
if (size != geo_size) {
if (!info) {
seq_buf_puts(&state->pp_buf, "\n");
seq_buf_putc(&state->pp_buf, '\n');
return 1;
}
if (!strcmp(info->type, "ECKD"))
Expand All @@ -266,7 +266,7 @@ static int find_lnx1_partitions(struct parsed_partitions *state,
/* first and only partition starts in the first block after the label */
offset = labelsect + secperblk;
put_partition(state, 1, offset, size - offset);
seq_buf_puts(&state->pp_buf, "\n");
seq_buf_putc(&state->pp_buf, '\n');
return 1;
}

Expand Down Expand Up @@ -307,7 +307,7 @@ static int find_cms1_partitions(struct parsed_partitions *state,
}

put_partition(state, 1, offset, size-offset);
seq_buf_puts(&state->pp_buf, "\n");
seq_buf_putc(&state->pp_buf, '\n');
return 1;
}

Expand Down Expand Up @@ -388,7 +388,7 @@ int ibm_partition(struct parsed_partitions *state)
size = nr_sectors;
offset = (info->label_block + 1) * (blocksize >> 9);
put_partition(state, 1, offset, size-offset);
seq_buf_puts(&state->pp_buf, "\n");
seq_buf_putc(&state->pp_buf, '\n');
}
} else
res = 0;
Expand Down
2 changes: 1 addition & 1 deletion block/partitions/karma.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ int karma_partition(struct parsed_partitions *state)
}
slot++;
}
seq_buf_puts(&state->pp_buf, "\n");
seq_buf_putc(&state->pp_buf, '\n');
put_dev_sector(sect);
return 1;
}
Expand Down
2 changes: 1 addition & 1 deletion block/partitions/ldm.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ static bool ldm_create_data_partitions (struct parsed_partitions *pp,
part_num++;
}

seq_buf_puts(&pp->pp_buf, "\n");
seq_buf_putc(&pp->pp_buf, '\n');
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion block/partitions/mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,6 @@ int mac_partition(struct parsed_partitions *state)
#endif

put_dev_sector(sect);
seq_buf_puts(&state->pp_buf, "\n");
seq_buf_putc(&state->pp_buf, '\n');
return 1;
}
4 changes: 2 additions & 2 deletions block/partitions/msdos.c
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ int msdos_partition(struct parsed_partitions *state)
fb = (struct fat_boot_sector *) data;
if (slot == 1 && fb->reserved && fb->fats
&& fat_valid_media(fb->media)) {
seq_buf_puts(&state->pp_buf, "\n");
seq_buf_putc(&state->pp_buf, '\n');
put_dev_sector(sect);
return 1;
} else {
Expand Down Expand Up @@ -672,7 +672,7 @@ int msdos_partition(struct parsed_partitions *state)
seq_buf_puts(&state->pp_buf, "[EZD]");
}

seq_buf_puts(&state->pp_buf, "\n");
seq_buf_putc(&state->pp_buf, '\n');

/* second pass - output for each on a separate line */
p = (struct msdos_partition *) (0x1be + data);
Expand Down
2 changes: 1 addition & 1 deletion block/partitions/of.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ int of_partition(struct parsed_partitions *state)
slot++;
}

seq_buf_puts(&state->pp_buf, "\n");
seq_buf_putc(&state->pp_buf, '\n');

of_node_put(partitions_np);
return 1;
Expand Down
2 changes: 1 addition & 1 deletion block/partitions/osf.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ int osf_partition(struct parsed_partitions *state)
le32_to_cpu(partition->p_size));
slot++;
}
seq_buf_puts(&state->pp_buf, "\n");
seq_buf_putc(&state->pp_buf, '\n');
put_dev_sector(sect);
return 1;
}
2 changes: 1 addition & 1 deletion block/partitions/sgi.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ int sgi_partition(struct parsed_partitions *state)
}
slot++;
}
seq_buf_puts(&state->pp_buf, "\n");
seq_buf_putc(&state->pp_buf, '\n');
put_dev_sector(sect);
return 1;
}
2 changes: 1 addition & 1 deletion block/partitions/sun.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ int sun_partition(struct parsed_partitions *state)
}
slot++;
}
seq_buf_puts(&state->pp_buf, "\n");
seq_buf_putc(&state->pp_buf, '\n');
put_dev_sector(sect);
return 1;
}
2 changes: 1 addition & 1 deletion block/partitions/sysv68.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ int sysv68_partition(struct parsed_partitions *state)
}
slot++;
}
seq_buf_puts(&state->pp_buf, "\n");
seq_buf_putc(&state->pp_buf, '\n');
put_dev_sector(sect);
return 1;
}
2 changes: 1 addition & 1 deletion block/partitions/ultrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ int ultrix_partition(struct parsed_partitions *state)
label->pt_part[i].pi_blkoff,
label->pt_part[i].pi_nblocks);
put_dev_sector(sect);
seq_buf_puts(&state->pp_buf, "\n");
seq_buf_putc(&state->pp_buf, '\n');
return 1;
} else {
put_dev_sector(sect);
Expand Down