Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
osd-target: Print the function name and not the file-name.
Change the _sense_build_* macros to output function names
and not file-names. Easier to ctags to.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
  • Loading branch information
Boaz Harrosh committed Feb 11, 2011
1 parent 2826f45 commit e9e8792
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
10 changes: 10 additions & 0 deletions inst.sh
@@ -0,0 +1,10 @@
#!/bin/bash
#

dest=root@10.65.163.104:/root/

scp tgt/usr/tgtd $dest
scp tgt/usr/tgtadm $dest
scp tgt/usr/tgtimg $dest

scp /usr/local/lib/libsqlite3.so.8 $dest
8 changes: 4 additions & 4 deletions osd-target/target-sense.h
Expand Up @@ -19,7 +19,7 @@
#define __TARGET_SENSE_H

#define sense_header_build(data, len, key, code, additional_len) \
_sense_header_build(data, len, key, code, additional_len, __FILE__, __LINE__)
_sense_header_build(data, len, key, code, additional_len, __func__, __LINE__)
int _sense_header_build(uint8_t *data, int len, uint8_t key, uint16_t code,
uint8_t additional_len, const char *file, int line);

Expand All @@ -33,17 +33,17 @@ int _sense_info_build(uint8_t *data, int len, uint32_t not_init_funcs,
int _sense_csi_build(uint8_t *data, int len, uint64_t csi, const char *file, int line);
*/
#define sense_basic_build(sense, key, code, pid, oid) \
_sense_basic_build(sense, key, code, pid, oid, __FILE__, __LINE__)
_sense_basic_build(sense, key, code, pid, oid, __func__, __LINE__)
int _sense_basic_build(uint8_t *sense, uint8_t key, uint16_t code,
uint64_t pid, uint64_t oid, const char *file, int line);

#define sense_build_sdd(sense, key, code, pid, oid) \
_sense_build_sdd(sense, key, code, pid, oid, __FILE__, __LINE__)
_sense_build_sdd(sense, key, code, pid, oid, __func__, __LINE__)
int _sense_build_sdd(uint8_t *sense, uint8_t key, uint16_t code,
uint64_t pid, uint64_t oid, const char *file, int line);

#define sense_build_sdd_csi(sense, key, code, pid, oid, csi) \
_sense_build_sdd_csi(sense, key, code, pid, oid, csi, __FILE__, __LINE__)
_sense_build_sdd_csi(sense, key, code, pid, oid, csi, __func__, __LINE__)
int _sense_build_sdd_csi(uint8_t *sense, uint8_t key, uint16_t code,
uint64_t pid, uint64_t oid, uint64_t csi, const char *file, int line);

Expand Down

0 comments on commit e9e8792

Please sign in to comment.