smartmontools SVN Rev 5645
Utility to control and monitor storage systems with "S.M.A.R.T."
Macros | Functions
farmprint.cpp File Reference
#include "config.h"
#include <string>
#include <inttypes.h>
#include "farmprint.h"
#include "smartctl.h"
Include dependency graph for farmprint.cpp:

Go to the source code of this file.

Macros

#define __STDC_FORMAT_MACROS   1
 

Functions

static const char * farm_get_recording_type (const uint64_t driveRecordingType)
 
static const char * farm_get_form_factor (const uint64_t formFactor)
 
static void farm_print_by_head_to_text (const char *desc, const int64_t *paramArray, const uint64_t numHeads)
 
static void farm_print_by_head_to_json (const json::ref &jref, char(&buffer)[128], const char *desc, const int64_t *paramArray, const uint64_t numHeads)
 
static uint64_t farm_byte_swap (const uint64_t param)
 
static char * farm_format_id_string (char *buffer, const uint64_t param)
 
static char * farm_format_id_string (char *buffer, const uint64_t param1, const uint64_t param2)
 
void ataPrintFarmLog (const ataFarmLog &farmLog)
 
void scsiPrintFarmLog (const scsiFarmLog &farmLog)
 

Macro Definition Documentation

◆ __STDC_FORMAT_MACROS

#define __STDC_FORMAT_MACROS   1

Definition at line 13 of file farmprint.cpp.

Function Documentation

◆ ataPrintFarmLog()

void ataPrintFarmLog ( const ataFarmLog farmLog)

Definition at line 150 of file farmprint.cpp.

◆ farm_byte_swap()

static uint64_t farm_byte_swap ( const uint64_t  param)
static

Definition at line 98 of file farmprint.cpp.

◆ farm_format_id_string() [1/2]

static char * farm_format_id_string ( char *  buffer,
const uint64_t  param 
)
static

Definition at line 111 of file farmprint.cpp.

◆ farm_format_id_string() [2/2]

static char * farm_format_id_string ( char *  buffer,
const uint64_t  param1,
const uint64_t  param2 
)
static

Definition at line 135 of file farmprint.cpp.

◆ farm_get_form_factor()

static const char * farm_get_form_factor ( const uint64_t  formFactor)
static

Definition at line 45 of file farmprint.cpp.

◆ farm_get_recording_type()

static const char * farm_get_recording_type ( const uint64_t  driveRecordingType)
static

Definition at line 26 of file farmprint.cpp.

◆ farm_print_by_head_to_json()

static void farm_print_by_head_to_json ( const json::ref jref,
char(&)  buffer[128],
const char *  desc,
const int64_t *  paramArray,
const uint64_t  numHeads 
)
static

Definition at line 84 of file farmprint.cpp.

◆ farm_print_by_head_to_text()

static void farm_print_by_head_to_text ( const char *  desc,
const int64_t *  paramArray,
const uint64_t  numHeads 
)
static

Definition at line 69 of file farmprint.cpp.

◆ scsiPrintFarmLog()

void scsiPrintFarmLog ( const scsiFarmLog farmLog)

Definition at line 509 of file farmprint.cpp.