Lines Matching refs:obuff
2486 fetch_unit_serial_num(int sg_fd, char * obuff, int obuff_len, int verbose) in fetch_unit_serial_num() argument
2521 obuff[k] = isprint(c) ? c : ' '; in fetch_unit_serial_num()
2525 obuff[k] = '\0'; in fetch_unit_serial_num()
2903 char obuff[DEF_ALLOC_LEN]; in vpd_decode() local
2906 memset(obuff, 0, sizeof(obuff)); in vpd_decode()
2908 if (len >= (int)sizeof(obuff)) in vpd_decode()
2909 len = sizeof(obuff) - 1; in vpd_decode()
2910 memcpy(obuff, rp + 4, len); in vpd_decode()
2912 k = encode_whitespaces((uint8_t *)obuff, len); in vpd_decode()
2917 if ((obuff[m] >= '0' && obuff[m] <= '9') || in vpd_decode()
2918 (obuff[m] >= 'A' && obuff[m] <= 'Z') || in vpd_decode()
2919 (obuff[m] >= 'a' && obuff[m] <= 'z') || in vpd_decode()
2920 strchr("#+-.:=@_", obuff[m]) != NULL) in vpd_decode()
2921 printf("%c", obuff[m]); in vpd_decode()
2923 printf("\\x%02x", obuff[m]); in vpd_decode()
2930 k = encode_unicode((uint8_t *)obuff, len); in vpd_decode()
2932 sgj_pr_hr(jsp, " Unit serial number: %s\n", obuff); in vpd_decode()
2933 sgj_js_nv_s(jsp, jo2p, "unit_serial_number", obuff); in vpd_decode()