Lines Matching defs:sz
191 #define snprintfcat(dest, sz, fmt, ...) \
192 snprintf((dest) + strlen(dest), (sz) - strlen(dest), fmt, ##__VA_ARGS__)
193 const char *eeprom_get_dtb_name(int level, char *buf, int sz)
220 snprintf(buf, sz, "%s%2dxx-%dx", pre, base, som);
224 snprintf(buf, sz, "%s%4d-%dx", pre, base, som);
229 snprintfcat(buf, sz, "-%c%d", rev_base_pcb, rev_base_bom);
231 snprintfcat(buf, sz, "-%c", rev_base_pcb);
233 snprintfcat(buf, sz, "%c%d", rev_pcb, rev_bom);
235 snprintfcat(buf, sz, "%c", rev_pcb);
239 snprintfcat(buf, sz, "-%c%d", rev_base_pcb, rev_base_bom);
241 snprintfcat(buf, sz, "-%c", rev_base_pcb);
242 snprintfcat(buf, sz, "xx");
245 snprintfcat(buf, sz, "-xx");
247 snprintfcat(buf, sz, "%c%d", rev_pcb, rev_bom);
249 snprintfcat(buf, sz, "%c", rev_pcb);
257 snprintf(buf, sz, "%s%04d", pre, model);
261 snprintfcat(buf, sz, "-%c%d", rev_pcb, rev_bom);
263 snprintfcat(buf, sz, "-%c", rev_pcb);
266 snprintfcat(buf, sz, "-%c", rev_pcb);